If you’re writing a website in PHP, then by each PHP script will time out after a set time (usually 30 seconds by default). If this happen, you’ll see an error like the following: Fatal error: Maximum execution time of 30 seconds exceeded in <file> on line <line> This is a safety feature; if your [...]
Archive for the ‘PHP’ Category
Setting the maximum execution time in PHP
Posted: 5th September 2011 by Tim in PHPTags: fatal error, maximum, PHP, script, set_time_limit, time limit, web
0
301 Redirects in PHP
Posted: 9th July 2010 by Tim in PHPTags: 301, 404, error, header, htaccess, HTML, HTTP, management, PHP, redirection, website
If you have a web page which has been moved to another URL, or if the page has been completely removed, chances are people will have that address saved in their bookmarks, or they will try to access the page via a search engine and get a 404 – Page Not Found error. Not only [...]