address

2 minutes read
Now easy Get the lat long coordinates from an address. Type the address which would include the name of the street,city/town, state and country name to get more accurate lat long value. Get Lat Long By Address: //Make Address $address = $address.",".$area.",".$city.",".$country; $preparedAddress = str_replace(' ','+',$address); //Google Api $geocode=file_get_contents('http://maps.google.com/maps/api/geocode/json?address='.$...
3 minutes read
Some times we need the visitor’s IP address for validation, security, spam prevention etc. Getting the Visitor’s IP address is very easy in PHP. We can get the Internet Protocol (IP) address of any visitor by using PHP. Get Clients IP address using PHP script The easy way to get the visitor’s IP address in php is : // Get the visitors ip address <?php echo $ipaddress = $_SERVER['REMOTE_ADDR']; ?> 1234 // Get the vis...