Page 1 of 1

Help! Looking for a PHP script!

Posted: Tue Jul 09, 2002 12:06 pm
by Murali
I need a simple script that, when someone loads the page, does a ping of my DNS(murali.mine.nu) and shows the IP that comes up...I can't find a simple script like that and was hoping to enlist the help of one of you!

Posted: Tue Jul 09, 2002 12:48 pm
by FlashMan
Use function getenv("server variable");
ex.:
$ip_addr=getenv("remote_addr");

and run phpinfo.php to see what variables you can use in getenv. Good luck:)