Page 1 of 1

how to force the Web server to not limit PHP process

Posted: Sun Nov 20, 2005 4:47 am
by jasongr
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: Select all

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

Posted: Sun Nov 20, 2005 5:47 am
by onion2k
I use..

Code: Select all

set_time_limit(0);
ini_set("max_execution_time",1800);
ignore_user_abort(true);
error_reporting(0);
But some of those settings might not work if your server is running PHP in safe mode.