Monthly Archives: March 2009
php suppress errors
| March 30, 2009 | Posted by The Futtock under Other Stuff |
Comments off
|
When you have your PHP script up and running on the web, you might want to suppress any errors as they can show visitors some of the inner workings of your scripts.
Here are three basic levels of error suppresson or lack of it:
error_reporting(0); // Suppress all errors
ini_set (“display_errors”, “1″); // Suppress all but fatal …
PHP change max execution time
| March 30, 2009 | Posted by The Futtock under Other Stuff |
Having trouble with your PHP scripts timing out? You need to change the max execution time. Try one or both of the following:
ini_set(“max_execution_time”, 60); // Set to 60 seconds
set_time_limit(60); // Set to 60 seconds
For no time limit try:
set_time_limit(0); // No time limit
You might still run into problems of your server is running PHP in …
Recent Comments