Howto Show Visitors IP Address in a Image

Posted Apr 22, 2009 by MrVinux / comments 0 comments / Print / Font Size Decrease font size Increase font size

Show Visitors IP Address using php and a Image

Hello!

Welcome to a http://www.mrvinux.com howto tut you can find this here.

This is what you will get after you are done

Let's start!

What you need

  1. index.php
  2. new directory (folder)
  3. .png image

Ok so start off with a index.php and here is the code that you will need..

header(”Content-type: image/png”);
$im = imagecreatefrompng (”yourip.png”);
$colour = imagecolorallocate($im, 255, 255, 255);
$ip = “$_SERVER[REMOTE_ADDR]“;
imagestring($im, 3, 71, 2, $ip, $colour);
imagepng($im);

?>

Now you need the a image here is one for the tut.
(save as)

Now you need to make a folder via FTP mine is called yourip but you can call it what you want.

Then all you gota do is upload it..

That's it!
More to come!
http://www.mrvinux.com
Vince Linuz(MrVinux)

-FAQ-
Q-What did you use to make the image?
A-I use photoshop CS3

Q-What is PHP
A-PHP is a scripting language originally designed for producing dynamic web pages.

Q- Nice tut can i use this on my site?
A-Sure you can! just make sure you link back that's all i ask! and please don't say you made this :/

Well that's all for now!
The article body field must contain at least 250 words so i'll give you some info.
PHP was originally created by Rasmus Lerdorf in 1995, the main implementation of PHP is now produced by The PHP Group PHP is free software released under the PHP License, however it is incompatible with the GNU General Public License (GPL), due to restrictions on the usage of the term PHP

Rate this Article:

Be the first to rate me.

  • Nothing Found!

    Why not submit your own content? Signup here.


* You must be logged in order to leave comments, please login or join us.

Comments

No comments yet.



Bookmark and Share
Sign up for our email newsletter
Name:
Email: