Help! Looking for a PHP script!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Murali
Forum Newbie
Posts: 1
Joined: Tue Jul 09, 2002 12:06 pm
Contact:

Help! Looking for a PHP script!

Post 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!
FlashMan
Forum Newbie
Posts: 15
Joined: Mon Jun 24, 2002 9:50 am
Location: Russia
Contact:

Post 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:)
Post Reply