Howto Show Visitors IP Address in a Image
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
- index.php
- new directory (folder)
- .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
-
Understand The Way Visitors Insurance Work To Yield Better Results
| By armenwilson | in Insurance
Due to the extremely costly medical care in USA, you have to take some steps before visiting this country to avoid ...
-
Get More Visitors To Your Site
| By realcool | in General
The way you can get more visitors to youe site. Your site need a returning visitors if you want to get extra income...
-
Visitor Insurance Is A Sound Choice For Travellers Today
| By jamywilson | in Insurance
Have you ever wondered what would happen if you were to get sick or have an accident while on vacation? The truth i...
-
5 Ways to Keep Visitors Coming Back
| By buxp | in Web Marketing
A lot of successful websites depend on returning visitors to account for a major part of their traffic. Returning v...
-
10 Ways To Keep Visitors On Your Site Longer
| By fudd | in Web Marketing
The more time people spend at your web site, the more time you'll have to persuade them to buy your product or serv...
-
Selecting The Right Keywords | By PeopleSeeker | in Web Development
You should know what you would like your keyword or keyword phrase to be even before you begin writing your article...
-
Build a Website With Ease | By MotivatingInspiratio | in Web Development
Learn How to Build a Website With Little or No Programming Knowledge...
-
Howto use QueryString in ASP.NET for passing info between pages | By rajeshchoudhary | in Web Development
The QueryString in ASP.NET is used to pass information between pages....
-
Custom error pages in asp.net using configuration file | By rajeshchoudhary | in Web Development
In ASP.NET you can handle page level errors using OnError method of page object or Application level errors using A...
-
Build A Free Ecommerce Store Front In Less Than An Hour | By AaronMeagher | in Web Development
Are you looking to start selling online and want a quick and easy solution for your ecommerce storefront? While yo...
Nothing Found!
Why not submit your own content? Signup here.







No comments yet.