Re: Running a PHP script automatically?
| From: | Tom Rogers | Date: | Sun, 22 Sep 2002 07:02:25 +0000 |
| Subject: | Re: Running a PHP script automatically? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117153@lists.php.net to get a copy of this message | ||
Hi,
Sunday, September 22, 2002, 2:44:54 PM, you wrote:
JS> Folks, I have a PHP script that needs to be executed automatically every 15 minutes. I have
JS> the option of doing this on a RedHat linux box, or on Windows 2000 Server.
JS> How would I do this (on either platform) and which would be easier?
JS> I believe somehow I could create a cron job on linux, but I'm a bit confused how that
JS> would work. Would I just call the php script using Lynx? If so, does the Lynx process die when the
JS> php script
JS> is finished? Will I have dozens of Lynx processes still running at the end of the day?
JS> In Windows, I believe I could use the task scheduler, or something like that. But again, how
JS> exactly would I call the script? I certainly don't want a new browser window to open every 15
JS> minutes,
JS> especially if it doesn't close again.
JS> Any insight? Thanks!
JS> Joseph
JS> --
JS> PHP General Mailing List (http://www.php.net/)
JS> To unsubscribe, visit: http://www.php.net/unsub.php
I do this in cron
0,15,30,45 * * * * /usr/bin/lynx -dump http://domain.com/clkdown.php 1> /dev/null 2>
/dev/null
--
regards,
Tom