i am backing up a database (to offline) and I get: Fatal error: Maximum execution time of 30 seconds exceeded in bla.php how can i increase this time?
set_time_limit(number_here);
Originally posted by mbbout i am backing up a database (to offline) and I get: Fatal error: Maximum execution time of 30 seconds exceeded in bla.php how can i increase this time?
That parameter (max execution time) is set in the php.ini file, you just have to edit and change it to the desired value.
pns's post reminded me that you can't change the time limit within a script the way I listed if you're running PHP in safe mode.
You can also use the following line at the beginning of your php script.
ini_set(max_execution_time, 600); //Script can run for 10 minutes.