Page 1 of 1

PHP timesout while updating database

Posted: Wed Apr 14, 2004 7:42 am
by davidklonski
Hello

I have a PHP script which reads a SQL file which contains many INSERT statements.
The script iterates through all the statements are executes them.
For some reason, PHP times-out after a while during the execution, before reaching the end of the script.

Is there a timeout configuration that I need to set in order to allow it to run indefinitely (at least until the script finishes executing)?

thanks in advance

Posted: Wed Apr 14, 2004 7:57 am
by liljester
yep, its in the php.ini file. if you dont have access to change the php.ini you'll have to ask the server admin type person. look for a line like this (the 60 is seconds):

max_execution_time = 60