Page 1 of 1
HTTP request fails?
Posted: Thu Apr 12, 2007 5:51 am
by aye
Hi everyone! I'm trying to read a gzip compressed file using the gzfile() function. The problem is that ~1/3 of all the pages I am trying to read gives a HTTP request failed error ([function.gzfile]: failed to open stream: HTTP request failed!), even though it is accessbile through the browser. Does anyone know what causes this error and how it can be fixed?
Any help with this would be great!

Posted: Thu Apr 12, 2007 7:13 am
by feyd
Are these files on the same server as your script? If so, there's no reason to use HTTP requests to read the files.
Posted: Thu Apr 12, 2007 7:55 am
by aye
No.. files are located on other servers
Posted: Thu Apr 12, 2007 8:04 am
by feyd
PHP may not receive a result from the server you are requesting from in the time frame PHP expects to receive said result in.
What are you attempting to do?
Posted: Thu Apr 12, 2007 8:13 am
by aye
feyd wrote:PHP may not receive a result from the server you are requesting from in the time frame PHP expects to receive said result in.
What are you attempting to do?
I'm scraping a torrent tracker. scrape files can be quite large (up to 15mb). Maybe the problem is in that then..
So.. how do you fix this? increase max_execution_time ?