Showing posts with label php programming. Show all posts
Showing posts with label php programming. Show all posts

Sunday, February 10, 2013

Hire Expert Php Developers to Make Advanced Web Application


Hire Expert Php Developers to Make Advanced Web Application





Also it's easy to find best outsource PHP development company India because many source help you to choose best outsourcing company. India has been come out in since last two years as an IT hub. Last two years. Because of the plentiful resources and enormous knowledge base, the country promises to deliver the best PHP development.

You can get many benefits to hire  PHP Developers  several outsourcing benefits you will get some advantages as per following:

Get project within time limit

  • Affordable cost
  • Reliability
  • Decrease efforts
  • Quick response
  • Easy to custom any application
  • Easy to contact
  • Best technical support
  • Get Low cost high quality development
  • work only for your project
  • easy communication
  • increase productivity
  • effective Solution
  • Fast Development

Outsourcing PHP development to India is becoming popular because Offshore Software development companies in India have got an outstanding experience in custom web application development. They are multi Talented and expert developers available in India which are enthusiastic web professionals which have vast experience for PHP programming. Day by day PHP programming use has been increased and PHP Outsourcing Company offers you cost effective.


Hire PHP Developers, Hire PHP Developers Dedicated Team, Then India Is The Best Outsourcing Platform Where You Can Find Several Of Company Which Help You For Your All Business Need Solutions. For Hire PHP Programmer India is the desirable place to hire PHP developers from offshore PHP Development Company. . There Are several outsource Web Development organization In India Who Provide Specialized PHP developers.

PHP Is More Important Open Source Which Is Used To Make An Innovative Web Application Of Each And Every Industry. PHP Is A Scripting Language That Is Necessary For Develop Dynamic WebPages. If You Are Outsourcing Your Web Application Then Stop And Wait And Think About Hire PHP Developers Which Work Only For You. Hire Expert PHP Developers Which Help You To Develop A Website As Per Your Needs And Business Requirement.


you can contact me for freelancing projects.


Know more About : PHP Freelancing india

Friday, October 19, 2012

What to Look For While Hiring Dedicated PHP Developers or PHP Freelancers ?

PHP Development Services in India - Qualities that you must look for while hiring dedicated developers:


  • Ask how the number of hours they will devote to your project and make sure that they give regular work reports in case you have decided to hire dedicated PHP developers.
  • Always choose a web development company as per your requirements. Suppose you need a programmer for an e-commerce site that it is more beneficial to choose a developer that has more experience in developing both custom and e-commerce sites.
  • Ask about their PHP programming strategies and SEO strategy as the part of the proposal to compare it to other php application development companies in India.
  • Ask for the total number of dynamic website developers that will be working on your project.You must ensure that who will own the rights of the website and the content after the completion of the project.
  • Second and the most important step would be the years of experience of the web development company. Choose a PHP programming company that has a track record of 5 years or more. Examine the proficiency of dynamic website developers by asking questions about the development program.
  • Nothing can describe the quality of the developer as good as his work, make sure to review their portfolio to judge the quality and expertise of the developer. You may also read client testimonials or ask for the reference of their clients and call to ask them about the quality of the service.


Hope you have enjoyed the post ! 
any more idea about the same ?  let me know by comments !

Know More About :
PHP Freelancing India


Monday, September 19, 2011

Search for patterns in text using regular expressions


Hi Googler,
Few times i was in need to find some pieces of code to do some stuff. Searching for some pattern in text can be easy, and this class i made makes it look neat. In this article some terms will be used, like regular expressions. This article is not going to show how to work with regular expressions ( in future text: regEx ).
I will give you few useful resources to find out more if you are not familiar with regEx:
Search for patterns in text using regular expressions
Regular Expressions 

Class construction : 

This class is going to be pretty simple. It is going to have only six methods including constructor in which will some initialization happen. This class is going to have two setter methods, one for set text in which will search stuff happen, and one for pattern setting. One of methods will be search method which does not take any parameters. This class is basically heart of this class. It initializes search inside haystack text. There are also going to be two methods to return data. One to return array of results, and one to return string representation of search result. Class also contains three protected properties which are part of mechanism. I am not going to dissect every method separately because they are well explained with in-code comments and provided class documentation. Here is class source code.
--------------------------------------------------------------------------------
/**
* This class is used to do a search over needle in a haystack
* @author Bhavin Rana
*/
class SearchPattern {
/**
* This is haystack, subject of search
* @access protected
* @var string
*/
protected $_haystack;
/**
* This is needle, pattern of search
* @access protected
* @var string
*/
protected $_needle;
/**
* This is array of all matches of search
* @access protected
* @var array
*/
protected $_matches;
/**
* This is constructor method
*/
public function __construct(){
// Inizialize _matches as array type
$this -> _matches = array();
}
/**
* This is setter of haystack property
* @param string $haystack
* @access public
*/
public function setHaystack( $haystack ){
// Check if parameter is string and not empty
if( is_string( $haystack ) && !empty( $haystack ) ){
// Set haystack property
$this -> _haystack = $haystack;
}
}
/**
* This is setter of needle property
* @param string $needle
* @access public
*/
public function setNeedle( $needle ){
// Check if parameter is string and not empty
if( is_string( $needle ) && !empty( $needle ) ){
// Set haystack property
$this -> _needle = $needle;
}
}
/**
* This method is used to do search over needle in a haystack
* @access public
*/
public function search(){
// Search in haystack for needles
// Output matches into array
preg_match_all( $this -> _needle, $this -> _haystack, $this -> _matches );
}
/**
* This method returns result array
* @access public
* @return array
*/
public function toArray(){
// Return array
return $this -> _matches;
}
/**
* This method returns result string
* Every result item is formated to a new row
* @access public
* @return string
*/
public function toString(){
// Initialize output string variable
$output = "";
// Foreach match
foreach( $this -> _matches[0] as $match ) $output .= $match . "<br/>";
// Finally, return stringž
return $output;
}
}
Within download package is provided very simple example code for you to see what can be achieved with this small, but powerful class.

Download source code, documentation and example package

Download Now



hope this post helped, let me know via comments 
if any questions.


Know More About :
PHP Freelancing India

Thursday, September 15, 2011

How to Remove Characters Except Numbers from a String ?


Following Code will remove all character,special characters including space.


$givenNumber = “1245fdfd8454D FDFDF434 3$#$#%”;
$testingNumber = preg_replace(‘[\D]‘, ”, $givenNumber);
echo $testingNumber;
Output is : 124584544343


isnt it so easy ?


How to Translate Text to desired language ?

Just follow these steps and copy & paste the code you can translate text easily.

Step 1 : Make a div with id (id is compulsory)
Like &lt;div id=&quot;content&quot;&gt;Loading…&lt;/div&gt;





Step 2 : Paste the following code to head section under script tag of your webpage.
google.load(“language”, “1″);
function initialize() {
var content = document.getElementById(‘content’);
// Setting the text in the div.
content.innerHTML = ‘&lt;div id=”text”&gt;Place Your Text Here (Hola, me alegro mucho de verte.)&lt;\/div&gt;&lt;div id=”translation”/&gt;’;
// Grabbing the text to translate
var text = document.getElementById(“text”).innerHTML;
// Translate from Spanish to English, and have the callback of the request
// put the resulting translation in the “translation” div.
// Note: by putting in an empty string for the source language (‘es’) then the translation
// will auto-detect the source language.
google.language.translate(text, ‘es’, ‘en’, function(result) {
var translated = document.getElementById(“translation”);
if (result.translation) {
translated.innerHTML = result.translation;
}
});
}
google.setOnLoadCallback(initialize);




Step 3 : And the final Step is paste the following URL in src of script tag.
http://www.google.com/jsapi?key=AIzaSyA5m1Nc8ws2BbmPRwKu5gFradvD_hgq6G0
Above example is translating Spanish to English You can translate as your choice.
Just change the code in
google.language.translate(text, ‘es’, ‘en’, function(result)
es stands for Spanish,
en stands for English
You can find more language code at http://code.google.com/apis/language/translate/v1/reference.html


Hope this post helped,
for any questions let me know by comments.

Sunday, July 17, 2011

Set Meta Title (Page Title) in CakePHP 1.2/1.3


Hello Friends,
As i mention in my previous posts, CakePHP 1.3 come up with lots of new syntax changes. I was looking for a Meta Title SEO tag for each page. I need to set this Meta Title (Page Title) for each page. You must be aware that Page Title can be set in method which we write in respective controller. Look at below syntax changes in CakePHP 1.2 and CakePHP 1.3 for setting Page Title.
CakePHP 1.2
$this->pageTitle = “Page Title Value”;
CakePHP 1.3
$this->set(“title_for_layout”,”Page Title Value”);
If you find any problem in this than let me know by comment.

Zip Component in CakePHP-Add files in Zip


Hello Friends,
Today i have implemented a Zip functionality in CakePHP. If you want to create an archive file consists of some files to give a download Zip fileoption to user than i might help you to show the steps. Below are the steps how to zip all files and save it to some folder.
$this->Zip->addFile($src_file,$file_name_inzip);
$this->Zip->saveZip(“myzipfile.zip”);
First you can download the file given in link and place above file in components directory in your app/controller folder. Now you can call the function addFile for adding files in zip. Once you will call this function it will read all data from src_file. Now you can save those data to Zip file by calling saveZip function.
If you find any problem in this than let me know by comment.

Problem in Mozilla Firefox-Easy AJAX Pagination Using JQuery CakePHP


Hello Friends,
I was working with CakePHP’s Easy AJAX Pagination Using JQuery. I found this as a great code for sorting and paging with jQuery inCakePHP. But i faced a problem in Mozilla Firefox. It is not working in Mozilla Firefox. While in IE and Crome it works fine for me. For Mozilla Firefox when i debug it, it shows an error like “501 Method Not Implemented”. I searched for this error and Google gives the solution likeClearing Cache and Cookie. But neither works for me. Finally i got the issue and the problem is in jQuery load function.





 /**
* Loads in a URL into a specified divName, and applies the function to
* all the links inside the pagination div of that page (to preserve the ajax-request)
* @param string href The URL of the page to load
* @param string divName The name of the DOM-element to load the data into
* @return boolean False To prevent the links from doing anything on their own.
*/


function loadPiece(href,divName) {
$(divName).load(href, {}, function(){
var divPaginationLinks = divName+” #pagination a”;
$(divPaginationLinks).click(function() {
var thisHref = $(this).attr(“href”);
loadPiece(thisHref,divName);
return false;
});
});
}



If you open the above link and look at jQuery load function. They have passed the second parameter as {} for data. So that was the problem in Mozilla Firefox. You can remove the {} from jQuery load function.



If you find any problem in this than let me know by comment.

Implementing Google Maps using API on your website


Hello Friends,
Are you looking to implement Google Map in your website ?? Do you have a Real estate property website ? If yes, the you must implement(integrate) Google map using API key into your website. Recently i have implemented the Google map into one of my client’s website and it is very easy to implement.  Here i am showing you the step by step way to integrate the Google map into your website.
Below are the steps.
<?php
require(‘GoogleMapAPI.class.php’);
$map = new GoogleMapAPI(‘map’);
$map->setAPIKey(‘APIKEYHERE’);
$map->addMarkerByAddress(‘London SW66HX’,’Our Address’,’<b>London <br />SW66HX</b>’);
?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns:v=”urn:schemas-microsoft-com:vml”>
<head>
<?php $map->printHeaderJS(); ?>
<?php $map->printMapJS(); ?>
<!– necessary for google maps polyline drawing in IE –>
<style type=”text/css”>
v:* {
behavior:url(#default#VML);
}
</style>
</head>
<body onLoad=”onLoad();”>
<?php $map->printMap(); ?>
</body>
</html>
1) If you don’t have Google map API than
Create the one from here. (Its a free)
2) Download GoogleMapAPI.class.php Class.
3) Include GoogleMapAPI.class.php file in your web page.
<?php
require(‘GoogleMapAPI.class.php’);
?>
4) Add these three statement. Change your Google Map API key in second statement and provide address for which you want to show Google Map in third statement.
<?php
$gmap = new GoogleMapAPI(‘map’);
$gmap->setAPIKey(‘APIKEYHERE’);
$gmap->addMarkerByAddress(‘Ahmedabad India’,'Address’,'<b>Ahmedabad <br />Gujarat <br /> India</b>’);
?>
5) Write below code in <head></head> tags.
<head>
<?php $gmap->printHeaderJS(); ?>
<?php $gmap->printMapJS(); ?>
<!– necessary for google maps polyline drawing in IE –>
<style type=”text/css”>
v\:* {
behavior:url(#default#VML);
}
</style>
</head>
6) Call onLoad() function in body tag.
<body onLoad=”onLoad();”>
7) Write below statement to show the Google map as per provided address.
<?php $gmap->printMap(); ?>
Thats it.
If you find any problem in this than let me know by comment.

Saturday, July 16, 2011

How to remove index.php from url using .htaccess (mod_rewrite)

Hi Googler,
For better SEO optimization and make urls more search engine friendly, remove index.php from URL and make it easier to read.

Remove index.php from URL can be done by writing only two lines in your .htaccess(mod_rewrite in apache) file. Before writing this rule in .htaccess , make sure that your mod_rewrite is enabled(On) in yourapache server. Most probably mod_rewrite is enabled in Linux server but for windows server , you need to contact hosting people to make mod_rewrite enabled. You can check this by looking in phpinfo().


Below is the Rules which will remove index.php from URL using .htaccess. Look at below links for .htaccess rules.

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /([^/]+/)*index.php HTTP/ 
RewriteRule ^(([^/]+/)*)index.php$ http://www.%{HTTP_HOST}/ [R=301,NS,L]

Redirect 301 means Moved Permanently so most search engines willremove index.php from URL.


To know more about programming,MYSQL database,php info,php editor,programming php,Open-source,php help and php script , subscribe to our feed by entering email address below. You will get updates via email about every tutorial posted on this site . It will not take more than a sec.


Feel free to ask any question. Just leave your comment below and we will answer your comment with in 24 hours.

About

Professional & Experienced Freelance Developer From India, Technologist, Software Engineer, internet marketer and Open Sources Developer with experience in Finance, Telecoms and the Media. Contact Me for freelancing projects.

Enter your email address:

Delivered by FeedBurner