Re: PHP+Apache question
| From: | (Chris Adams) | Date: | Thu, 15 Mar 2001 15:33:15 +0000 |
| Subject: | Re: PHP+Apache question | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6069@lists.php.net to get a copy of this message | ||
On 15 Mar 2001 06:12:43 -0800, Martin Lindhe <martin@humany.com> wrote:
>the execution can take a long time, so i would want to execute it
>on a regular interval instead, so the data can be fetched from
>the database only, with close enough up-to-date information.
>
>however php (of course) executes scripts as they are accessed, and
>i havent found any hints of how to accomplish this in either php
>or apache documentation. is there a easy solution?
Install the CGI version of PHP and set up a batch file which calls it to run
your script; this batch file can then be added to the system scheduler.
Alternately, you could modify your script to basically call sleep() and start
again instead of existing.