PHP has in built facility to detect remote browser or IP address and other properties. These values are assigned to special variable. In this case, it is assigned to variable called REMOTE_ADDR. You can use any one of the following statement to obtained or read [...]
This time my tutorial is to find out accurate geographical coordinates (latitude and longitude) for any place on Earth using PHP, then display it on the map with the help of Google Maps API. The provides ways to search is by typing an address. Its [...]
Parsing XML With PHP Maybe it’s a lot of tutorials that teach how to parsing XML with PHP. However, only the basics. What if a little more complicated. This time I made a tutorial how to parsing XML with PHP, then process the data into [...]
PHP: Replacing multiple spaces with a single space I have a problem when doing HTML scraping in PHP, which is a lot of space. So I tried to find a solution, and I found this code. [php] $output = preg_replace(‘!\s+!’, ‘ ‘, $input); OR $output [...]
API Google URL Shortner – goo.gl Marcus Nunes – marcusnunes.com [php] <?php /* API Google URL Shortner – goo.gl Marcus Nunes – marcusnunes.com – 9/18/2010 eg: $googl = new goo_gl(‘http://marcusnunes.com’); echo $googl->result(); */ class goo_gl{ var $url, $resul; //goo.gl construct method function goo_gl($url){ $this->url = [...]
Get Geo-IP Information Requests a geo-IP-server to check, returns where an IP is located (host, state, country, town) [php] <?php $ip=’94.219.40.96′; print_r(geoCheckIP($ip)); //Array ( [domain] => dslb-094-219-040-096.pools.arcor-ip.net [country] => DE – Germany [state] => Hessen [town] => Erzhausen ) //Get an array with geoip-infodata function [...]
How Get Twitter Profile Image With PHP. [code] function twitter_profile_image($username, $size = '') { $api_call = 'http://twitter.com/users/show/'.$username.'.json'; $results = json_decode(file_get_contents($api_call)); return str_replace('_normal', $size, $results->profile_image_url); } [/code] source:http://stackoverflow.com/questions/2115084/pull-twitter-profile-image
How to calculate the number of days with PHP in the months and years now. I found the code to calculate the number of days with PHP. [php] function days_in_month() { $month = date(‘m’); $year = date(‘y’); // calculate number of days in a month [...]
My article this time to discuss my experience using database Firebird / Interbase with PHP. How to get the Last Number ID from a table. Because I think a lot of trouble when using a database Firebird / InterBase is not AutoIncrement, this is very [...]


