Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jan 2005
    Posts
    470
    Thanks
    3
    Thanked 0 Times in 0 Posts

    PHP Request Time-out

    I am running a simple PHP script that downloads a list of items using file_get_contents(). All has been fine until I recently installed Zend Core 2.0 with PHP 5.2.1. Now not but a few minutes into running through that list the PHP script suddenly stops everything with the message "<h1>Request Time-out</h1>" and no other explanation. I know this text doesn't show up anywhere in any script in the server's directory so it must be header information received. I can't figure out why a file_get_contents() call that receives a time-out header would make my script terminate like this.

    Any ideas?
    Last edited by bauhsoj; 04-21-2007 at 09:02 AM.

  • #2
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That means that your query has taken too long. Either you have a never ending loop or you have to change your settings. I think you will be able to do it in php.ini though I'm not sure. Basically the server terminated the script because it took too long to process.

  • #3
    Regular Coder
    Join Date
    Jan 2005
    Posts
    470
    Thanks
    3
    Thanked 0 Times in 0 Posts
    My query timed out? I am not running a MySQL query and the PHP max execution and input time is set to 8 hours. I tried switching to using cURL and the same thing happens. The loop ends when all the files have been downloaded. This Request Time-out message is showing after only a couple of minutes. I have no idea what setting I would need to change.

  • #4
    Regular Coder
    Join Date
    Jan 2005
    Posts
    470
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Also, if the server terminated the script because it took to long to process I would have gotten a "fatal error max execution time exceeded on line whatever" style error which would have explained the problem rather straightforwardly. The simple "Request Time-out" tells me absolutely nothing of where the problem lies or what triggered it exactly.

  • #5
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    Have you tried digging around in your server's error logs?
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #6
    Regular Coder
    Join Date
    Jan 2005
    Posts
    470
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by StupidRalph View Post
    Have you tried digging around in your server's error logs?
    Yeah, and unfortunately that didn't produce any thing.

    Come to find out there is a bug (?) in Zend Core 2.0 in which the usage of the function sleep() cannot set a script to sleep for longer than the integer value of "RequestTimeout" as set in "fastcgi.conf". I have reported this to Zend but so far they have no comment.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •