The Image Shows Your IP
The server is updated to PHP5, this function no longer works. I will try to solve it when I have time.

You probably saw those images which can show your local IP address on the interent before. Is it hard to make? Not really! You can achieve this by using PHP, since PHP has a function named "ImageCreateFromJPEG" which allow you to generate an image dynamically.

It is not hard to find your IP address using PHP. However, the location is a big problem. I found a Chinese IP database, and it contains a list of IP and its associated country or city. The problem is that it only supports Chinese so far.

Then I pass 2 parameters via the URL. One is the image's URL address, the other one is the text you want to add on the final generated image. The URL format is: http://www.sunnyspeed.com/idea/53_200609_ip/ip_speed.php?pic=your image's URL&text=your word

Example:

A image URL address: http://www.sunnyspeed.com/idea/53_200609_ip/ffmm.jpg

The text you want to add is: 大家好啊! (have to be Chinese so far)

Therefore you have the whole URL address for the dynamic image:

http://www.sunnyspeed.com/idea/53_200609_ip/ip_speed.php?pic=http://www.sunnyspeed.com/idea/53_200609_ip/ffmm.jpg&text=大家好啊

You will see your IP and the location show on the top left corner of the picture. When you right click on this image,you can save it as a JPG file.

OK! Now, you can try your own. Custome it using your own image.

Thank you!

Created by Sunny

2006-09-24