note 56445 deleted from function.fopen by danbrown

From: Date: Mon, 08 Jun 2009 23:40:38 +0000
Subject: note 56445 deleted from function.fopen by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156563@lists.php.net to get a copy of this message
Note Submitter: ericw at w3consultant dot net ---- RE: using fopen to read an http doc I beat my head against the wall trying to figure out why i couldn't fopen("http://www.mainserver.com/mySettings.php","r"); on just 1 webserver. It was working on all the other webservers, but on this one, it would just hang, then fail. Finally i figured out the machine i was doing it on was unable to look up domain names! If you are having this problem try an nslookup to the website you are having from the command line. ie: nslookup www.yahoo.com If that fails, the fopen will not work either. I changed to an IP (temp solution) and it works like a charm. -e

« previous php.notes (#156563) next »