News: Maximum execution time in PHP

Home News Photos News Videos News Cartoons News Blogs RSS

Home > PHP Scripts Examples and Tutorials > Maximum execution time in PHP

Maximum execution time in PHP

Solution for script time out. Some time back I had problems when I am uploading files, when I am doing some big process bla bla bla always PHP gives a message "PHP Fatal error: Maximum execution time of xx seconds exceeded".

Monday, Nov 05, 2007 | 1689 Views | Comments [View/Post]

OK, then I was starting to search and I did many things, but for me the good solution was: adding a small line to top of the script

set_time_limit(0);

0 sets no time limit, else the number is the number of seconds the
script is permitted to execute before failing with this error.

Please comment....


Comment on this article
Guidelines: You must register with a social media account such as Facebook, Twitter, Yahoo, etc. to comment on this story. Click on the "Login" button below to choose your login account of choice. We welcome your thoughts, but this is not an open forum. For the sake of all readers, please refrain from the use of obscenities, personal attacks or racial slurs. All comments must remain on topic and cyber bullying will not be tolerated. All comments are subject to our terms of service. Comments that do not comply may be removed. Repeat offenders will lose commenting privileges.
News Other Language
World News
Movie News
Information
Travel News