Posts

job seeker site – freelancing site

www.dice.com www.indeed.com www.kijiji.com www.craigslist.com www.freelance.com www.careerbuilder.com https://www.odesk.com http://www.rentacoder.com http://www.getafreelancer.com http://www.sologig.com http://freelancepool.com http://www.freelance.com http://www.guru.com http://drupal.org/node/57624 http://www.php-freelancers.com http://www.hotgigs.com http://www.getacoder.com http://contractedwork.com http://www.eworkmarkets.com http://Drupalancers.com http://drupal.org/forum/51 http://www.php-editors.com/forums/forumdisplay.php?f=25 http://www.elance.com http://www.freelancecms.com http://www.ifreelance.com

Bring more traffic to your web site

ncreasing web site traffic is not an easy job. Here's some help that will help you bring more traffic to your site: Leave comments on articles and blogs that are related to your niche and have a good rank. This will help you to get a backlink to your web site, which may entice the visitors to these places come to your web page. Write original articles and submsit to article submission directories. Post in forums and put your site’s URL in your signature. Use answers.yahoo.com to reply to people’s queries and get yourself (and your site) known. Submit a press release to various press release submission sites like PRWeb etc. Use CraigsList.com to advertise your website in the appropriate category. Submit your web site to the key search engines manually. Submit your web site to directories manually. Remember to select the most appropriate category for this. Try to optimize each of your web page for a particular search phrase or keyword.

Email PHP errors instead of displaying it

By default, most servers are set to display an error message when an error occured in one of your script. For security reasons, you may want to get an email with the error, instead of displaying it to the public. $email .= " " . print_r($vars, 1) . " "; $headers = 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Email the error to someone... error_log($email, 1, 'you@youremail.com', $headers); // Make sure that you decide how to respond to errors (on the user's side) // Either echo an error message, or kill the entire project. Up to you... // The code below ensures that we only "die" if the error was more than // just a NOTICE. if ( ($number !== E_NOTICE) && ($number < 2048) ) { die("There was an error. Please try again later."); } } // We should use our custom function to handle errors. set_error_handler('nettuts_error_handler'); // Trigger an error... (var

Display Facebook fans count in full text php code

Want to display how many Facebook fans do you have, in full text, on your blog? It’s very easy using the following snippet: function fb_fan_count($facebook_name){ // Example: https://graph.facebook.com/digimantra $data = json_decode(file_get_contents("https://graph.facebook.com/".$facebook_name)); echo $data->likes; }

Detect location by IP using php code

Here is an useful code snippet to detect the location of a specific IP. The function below takes one IP as a parameter, and returns the location of the IP. If no location is found, UNKNOWN is returned. function detect_city($ip) { $default = 'UNKNOWN'; if (!is_string($ip) || strlen($ip) < 1 || $ip == '127.0.0.1' || $ip == 'localhost') $ip = '8.8.8.8'; $curlopt_useragent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)'; $url = 'http://ipinfodb.com/ip_locator.php?ip=' . urlencode($ip); $ch = curl_init(); $curl_opt = array( CURLOPT_FOLLOWLOCATION => 1, CURLOPT_HEADER => 0, CURLOPT_RETURNTRANSFER => 1, CURLOPT_USERAGENT => $curlopt_useragent, CURLOPT_URL => $url, CURLOPT_TIMEOUT => 1,

Text messaging with PHP using the TextMagic API

If for some reason, you need to send text messages to your clients cell phones, you should definitely have a look to TextMagic. They provide an easy API which allow you to send SMS to cell phones. Please note that the TextMagic service isn’t free. // Include the TextMagic PHP lib require('textmagic-sms-api-php/TextMagicAPI.php'); // Set the username and password information $username = 'myusername'; $password = 'mypassword'; // Create a new instance of TM $router = new TextMagicAPI(array( 'username' => $username, 'password' => $password )); // Send a text message to '999-123-4567' $result = $router->send('Wake up!', array(9991234567), true); // result: Result is: Array ( [messages] => Array ( [19896128] => 9991234567 ) [sent_text] => Wake up! [parts_count] => 1 )

php download code

add download window in your website when user click on link open download windown and start download Start php $file=$_POST['name']; $downloadpath='put your dir path'; if(file_exists($downloadpath.$file)) { header('Content-Type:application/sis'); header('Content-Length:'.filesize($download_path.$file)); header('Content-Disposition: attachment;filename='.$file); $fp=fopen($download_path.$file,'r'); fpassthru($fp); fclose($fp); } else { echo 'selected file not available'; } end php