Maximum execution time error
Posted 03 July 2006 - 05:20 AM
Posted 03 July 2006 - 03:05 PM
You need to find the following line in the php.ini:
max_execution_time = 60
And chnage 60 to the time in secounds for how long you want your scripts to timeout at. Save your php.ini and restart your server.
Now to test this chnage has taken affect. Run the following script:
<?php phpinfo(); ?>
When you run that code you should get a page full of information about PHP and the server. Now scroll down a find the line that starts with this:
max_execution_time. Both coloumns to the right should state what you set in the php.ini, for exmaple 120
If they dont scroll back up to the top and verify that PHP is using the correct php.ini by looking for line that starts of with this:
Configuration File (php.ini) Path. To the right of that it should state the full path to your php.ini file. Is the php.ini file in the location it is showing. If it is not in the location stated then PHP is currently not using the php.ini file.
You can fix this by finding you php.ini file and moving it to the WINDOWS folder or if you have Apache2 installed you can add the following line to the httpd.conf file:
Change C:\WINDOWS to the correct path. For example if your php.ini file is in your PHP folder then use this: C:\php, presumming your PHP folder is in the root of the C drive.
Once you have moved or added the PHPiniDir line to Apaches config file save any files you have changes and restart Apache. Run the phpinfo script again and check whether PHP is using the correct php.ini fileand that the max_execution_time setting has been updated.
Posted 03 July 2006 - 03:53 PM
Posted 03 July 2006 - 03:56 PM
Also about the PHPIniDir line. I forgot to add quotes around the Path.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users