Need a php code

Newbie Spellweaver
Joined
Jul 26, 2006
Messages
72
Reaction score
0
Location
telaviv
If there is a thing like that, I need a code in php that checks the ip of a no-ip adress and print it..plz I need that code if there is a code like that in PHP (ASP will be good either)
 
Hm, I Don't know a php code for it but you can do this..

Start - run - cmd - ping whatever.no-ip.com and you will get the ip address.
 
i have a no-ip site and i need to show the ip to the users, because it's a dynamic IP..so the script takes the host(no-ip) and show the ip behind the host
 
Let me elaborate on this piece of script. Lets say you know an address for example (www. gooogle . com - in case this forum puts it into a link.)

This:
PHP:
<?php
$ip = gethostbyname('www.google.com');

echo $ip;
?>

echo in php means the same as print or Response.Write(asp) - to show...

so $ip will return - 216.239.37.99

Hopefully that cleared it up a bit. If you have any questions, let me know :)
 
Back