Archive for April, 2010
How to get Longitude and Latitude from an Address using PHP | Geocoding | JSON | Plot on Google Map using Location Address
Share In my previous article i explained “google-map-integration-using-javascript-php” . In all examples explained in the previous post we used longitude and latitude value to plot the location and we needed to find it manually . In many instance we would need to plot the location using an address . It can be done using a [...]
Google Map Integration using Javascript | PHP
Share Many of you would have wondered how we can integrate google maps to your web application . This tutorial would help you to do the same in a simple way using javascript and php . I am providing you a detailed description of Google Map Integration . Your First Map You need to get [...]
Credit Card Number Validation using PHP
Share I am sharing you a php function that would help you to validate credit card number . Its a ready made function thus can be used directly in any of your web projects . php function function is_valid_credit_card($s) { $s = strrev(preg_replace(‘/[^\d]/’,”,$s)); $sum = 0; for ($i = 0, $j = strlen($s); $i < [...]
Add Gravatar support to your web sites using PHP
Share Gravatar – An abbreviation for Globally Recognized Avatar – Its a service created by Tom Preston-Werner for providing globally unique avatars . Register your gravatar here . Many would have wondered how we can integrate Gravatar with web project . So i have written a php function that would solve your doubt . Implementing [...]
How Google Real-Time search work .
Share On searching a topic in google most of you would have seen the real time search results provided by google . It’s a new feature that came into existence around December 2009 . Google has an agreement with Twitter, Facebook, MySpace, FriendFeed, Identi.ca and Jaiku to consume and index their real-time data and make [...]
Search Twitter using PHP
Share This tutorial would help you to implement the simple search API provided by twitter and can be used in any web-projects . Its fast, effective and very simple to use . I have put together the code in a neat format for ease of use . The package contains 4 files : 1. index.php [...]
Capture Keystroke Using Jquery.js
Share Capture keystroke using jquery.js . Download and include jquery.js before you use the code . The code check the ASCII value of the key pressed . $(this).keydown(function(e) { if (e == null) { // for IE keycode = event.keyCode; } else { // for mozilla keycode = e.which; } if(keycode == 27){ // write [...]
A Function To Rotate Image using PHP
Share As you all know we use GD library in php for creating thumbnails of images . I found an interesting function that would help you to rotate image as you wish . function rotateImage($sourceFile,$destImageName,$degreeOfRotation) { $imageinfo=getimagesize($sourceFile); switch($imageinfo['mime']) { //create the image according to the content type case "image/jpg": case "image/jpeg": case "image/pjpeg": //for IE [...]
Twitter OAuth Integration using PHP
Share This article would help you to integrate twitter using OAuth . I had to implement twitter integration using OAuth but couldn’t find a good tutorial but did it successfully after long research. Thus I am sharing you step by step explanation on it . Step 1 : Login to your twitter account and register [...]
How to get Latest Tweet using php.
Share Integrating blogs with twitter was a daily routine for me . Thus i decided to write a function that would return you the last tweet of a particular twitter user . It is a simple self explanatory code . Note : Change $username to your account before you use . Usage echo "Latest Tweet [...]






