Re: Bizarre gethostbyname() problem
| From: | Markus Latzel | Date: | Fri, 02 May 2003 16:10:44 +0000 |
| Subject: | Re: Bizarre gethostbyname() problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-146147@lists.php.net to get a copy of this message | ||
Brad, anyone,
did you find out what the problem is? I am experiencing the same.
Running PHP 4.2.2-117 with Apache on Linux SuSE 8.1
Cheers,
Markus
--------------------------------------------------------------------
If I run the following code from the command line ("php -q socktest.php") it
works fine. If I try to run it through a browser gethostbyname fails (prints
unchanged host name).
<?php print gethostbyname( 'www.msn.com' ); ?>
What gives?
Brad