Re: find out ip address [beginner]
| From: | Matt Matijevich | Date: | Tue, 25 May 2004 20:19:05 +0000 |
| Subject: | Re: find out ip address [beginner] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-186947@lists.php.net to get a copy of this message | ||
could you ping or gethostip that webserver using the sytem command, then
parse what you recieve?
$val = system ('ping -c 1 outherwebserver');
or
$val = system ('gethostip outherwebserver');
//then parse $val to pull out the ip address
there is probably a better way to do it though, not even sure it if
that will work.