Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 1st, 2004, 03:17 PM
Authorized User
 
Join Date: Aug 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Time Limits on a Script

I have a PHP script reading data from a weather station which is set to run for 24 hrs before restarting the web page. THe script often stops with an out of time error message.

I have tried setting set_time_limit to a very large number near the start of the script eg (100000) but the program still stops before the 24 hrs is up.

The meta dat on the page is:

<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Refresh" CONTENT="10">

so the page restarts after 10 seconds.

Any suggestions on how to get the script running reliably for 24 hrs?

Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
optimise it or speed up execution time perl script crmpicco Perl 2 November 22nd, 2006 08:31 AM
Data field limits rayncarnation Access 1 October 15th, 2005 02:27 PM
script execution time madhukp Classic ASP Basics 2 February 2nd, 2005 04:51 AM
SQL trigger, rollback , update, limits brucenx SQL Server 2000 1 December 17th, 2004 07:05 AM
performance limits / data sets justinhume Pro PHP 1 July 15th, 2004 01:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.