Here is a small PHP tutorial for you ….Hope you have noticed Image verification used in many sites to avoid spam.This is called CAPTCHA.I will tell you how you can make an Image verification for your website in PHP.I will guarantee you,its very simple and can make you in 5 min.What we a re doing is, we are generating a random number and writing it into an image and displaying it
Here is the PHP code snippet to display the ip address and geolocation based on the ip address to the visitors  Here is the code <?php $ip=$_SERVER['REMOTE_ADDR']; echo “<font face=’Verdana’ size=’3′><b>IP Address= $ip</b>”; $url = “http://www.ipmango.com/api.php?ip=”.$ip; $xml = simplexml_load_file($url); echo “City : {$xml->city} <br />”; echo “Region : {$xml->region} <br />”; echo “Country Name [...]
PHp makes it very easy for you to draw an image for you on the fly in a website.This can be used to draw captcha images(image verifications to prevent spam).You can draw images and write text inside the image. In this tutorial,I will explain how you can draw an image set the colours of its [...]