SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict jasongr's Avatar
    Join Date
    Jul 2004
    Location
    usa
    Posts
    371
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to force the Web server to not limit PHP process

    Hello

    I have a PHP code that performs some very intense calculations which may take a long time
    however, after a while, I get the following error in my browser:

    Code:
    Server Error
    The following error occurred:
    
    [code=SERVER_RESPONSE_RESET] The server response could not be read because of an error. Contact your system administrator.
    Is there a way for me to inform the Web server to not limit the duration of the script?
    maybe using ini_set ?

    Maybe this error has nothing to do with timeouts... any suggestion would be appreciated

  2. #2
    Twitter: @TimIgoe silver trophy TimIgoe's Avatar
    Join Date
    Feb 2005
    Location
    Blackpool, UK
    Posts
    1,058
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    How about using the 'set_time_limit' function (http://uk2.php.net/manual/en/functio...time-limit.php)

    Code:
     // 10 minutes timeout
     set_time_limit(600);


Bookmarks

Posting Permissions

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