PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How can I stop my PHP script timing out?


If you are running a script that takes a long time, for instance it is doing a repetitive act several times or simply involves a lot of number crunching or similar, then there are times where your script may time out.

First you should consider whether a script that takes more than 30 seconds to run is suitable for a web server, but if there is a special instance where it is, or indeed if you are running PHP on your local server / machine, then you can adjust this with the following setting:

<?php
set_time_limit
(500);//increase time out to 500 seconds
?>



Comment on this Question and Answer >>>

ASK A QUESTION

More other PHP Questions

How do I add comments to my PHP script?

Can PHP create PDF files for me?

What is a constant in PHP?

how can i put the value 1 or 0 into checkbox if we checked then 1 otherwise 0?

How do I find the timestamp for a particular date?



Custom Search