free hit counter

Get latitude and longitude based on location name google maps api

Get latitude and longitude based on location name google maps api
how to get Latitude and Longitude in Google Maps using PHP   The idea is simple. Make a request to Google Maps server, and it will return an XML (or JSON). Then, parse the XML to get the Lat and Lon. function Get_Lat_lng($address=null)   {   if(!emptyempty($address)){   $prepAddr = str_replace(‘ ‘,‘+’,$address);   $geocode=file_get_contents(‘http://maps.google.com/maps/api/geocode/json?address=’.$prepAddr.‘&sensor=false’);   $output= json_decode($geocode, true);   if($output[‘status’] ==‘OK’)   {   $lat = $output[‘results’][0][‘geometry’][‘location’][‘lat’];   $lng = $output[‘results’][0][‘geometry’][‘location’][‘lng’];   $map_code=array(‘status’=>‘ok’,‘lat’=>$lat,‘lng’=>$lng);   return $map_code;   }   else{   ...

The perfect PHP clean url generator 23

The perfect PHP clean url generator
THE PERFECT PHP CLEAN URL GENERATOR In my hunt for the perfect clean url (smart url, slug, permalink, whatever) generator I’ve always slipped in some exception or bug that made the function a piece of junk. But I recently found an easy solution I hope I could call “definitive”. Clean url generators are crucial for ...

paypal component for cakephp 2

paypal component for cakephp
paypal component for cakephp Hello Friend  many time you use paypal payment using in html (form and its hidden field etc.) But in CakePHP nothing to do . No need to create from . so how to do it .. just follow simple step 1. save this component  in app->controller -> component  floder Download paypal ...

Editing .ctp Files in Dreamwaver and Eclipse

Editing .ctp Files in Dreamwaver and Eclipse
Editing .ctp Files in Dreamwaver In Dreamweaver, by default,we can’t edit our codes in .ctp script in the code or design views. Using Dreamweaver configuration, we can set it up. Here we will see the proper configuration for 1.Viewing   CTP and THTML files in code view with PHP syntax coloring 2.Viewing  CTP and THTML files in ...

Post on facebook page with the facebook php SDK

Post on facebook page with the facebook php SDK
Post on facebook page with the facebook php SDK I hope you have a facebook page and a App 🙂 Many time we need to auto post in facebook page wall when we post new article , post , image , video anything in our web site. So how to do this …. lets start ...