Display Visitors IP Address
Views Today: 1, Total Views: 2705, Submitted by: Python on 15-06-2006
Displaying your visitors IP address in PHP couldnt be any easier! Take a look at the following code:
Code
<?php
echo $_SERVER["REMOTE_ADDR"];
?>
All we are doing is echoing $_SERVER["REMOTE_ADDR"] to the browser. This is a predefined variable set by PHP which contains the visitors IP address.
Simple :D
Post A Comment
If you want to comment on this tutorial you must first register or login.



Syndicate