That's very simple. Use gethostbyname() function. Look "LXVIII. Network Functions" for more details.

----- Original Message ----- From: "Mag" <[EMAIL PROTECTED]>
To: "php php" <[EMAIL PROTECTED]>
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


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to