Re: Get remote servers ip
| From: | Eugeni Doljenko | Date: | Wed, 22 Sep 2004 11:51:59 +0000 |
| Subject: | Re: Get remote servers ip | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197550@lists.php.net to get a copy of this message | ||
That's very simple. Use gethostbyname() function. Look "LXVIII. Network Functions" for more details.
----- Original Message ----- From: "Mag" <genphp@yahoo.com>
To: "php php" <php-general@lists.php.net>
Sent: Wednesday, September 22, 2004 3:47 PM
Subject: [PHP] Get remote servers ip
Hi, I have a textbox where a visitor can enter a site name/url (eg: http://google.com) and i need to display that ip on the screen. how do i get the ipaddress of google.com using PHP? Thanks, Mag ===== ------ - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php