PHP timesout while updating database

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
davidklonski
Forum Contributor
Posts: 128
Joined: Mon Mar 22, 2004 4:55 pm

PHP timesout while updating database

Post 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
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Post 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
Post Reply