Re: Problem with readfile, fsockopen, intermittent with apache

From: Date: Sun, 25 May 2003 20:00:57 +0000
Subject: Re: Problem with readfile, fsockopen, intermittent with apache
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148926@lists.php.net to get a copy of this message
At 21:23 25.05.2003, Steven said: --------------------[snip]-------------------- >I've been having a problem with readfile and fsockopen not working all >the >time with my PHP installation. The code worked fine for months without >and >then suddenly stopped working. The errors getting from the respective >calls >are: > >Warning: readfile(http://www.someurl.com?arg) >http://www.php.net/function.readfile failed to create stream: >HTTP >request >failed! > >and: > >fsockopen() [function.fsockopen]: php_hostconnect: connect failed > >The strange thing about both of these errors, is that once the error is >occuring and the functions are not working, if I restart Apache (php is >running as an apache module), then the functions will work for a short >time >(havn't figured out exactly how long, at least 30 minutes or an hour) >before >something happens and they stop working again with the above errors. > >I'm not certain it is a PHP issue, but may be something else that PHP >interacts with. I'm very stumped due to the odd behavior when restarting >apache. --------------------[snip]-------------------- What operating system? What Apache and PHP version? The effect you describe seems to me that PHP runs out of file handles. Windoze issue? -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#148926) next »