Bizarre gethostbyname() problem

From: Date: Sat, 08 Mar 2003 03:24:36 +0000
Subject: Bizarre gethostbyname() problem
Groups: php.general 
Request: Send a blank email to php-general+get-138717@lists.php.net to get a copy of this message
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

« previous php.general (#138717) next »