maybe easy, maybe hard...
Posted 12 June 2006 - 01:09 PM
Is there a way in PHP to enter a url and get an IP back?
IE, if I enter www.google.com, I get back 220.127.116.11 or whatever...
Or, does that require rwhois or simular?
I just want to log what IP i'm on (I have dynamic ip) when I do a certain function...
Posted 12 June 2006 - 01:17 PM
Posted 12 June 2006 - 01:20 PM
Example 1. A simple gethostbyname() example
<?php $ip = gethostbyname('www.example.com'); echo $ip; ?>
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users