Re: executing script at specified time
| From: | Mike Payson | Date: | Thu, 18 Oct 2001 10:23:30 +0000 |
| Subject: | Re: executing script at specified time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71465@lists.php.net to get a copy of this message | ||
As far as I know, there is no way to do this in Apache. Instead, use
cron & lynx:
59 23 * * * lynx -dump http://domain.com/script.php >
~/phpdump.txt
If you don't need to save the results, use:
59 23 * * * lynx -dump http://domain.com/script.php >
/dev/null
On Wed, 2001-10-17 at 17:05, Richard Baskett wrote:
> How can I execute a php script at a specified time using an Apache server?
> Let's say I wanted to send everyone an email, who had updated their personal
> information within the last 24 hours, every night at midnight...
>
> I would write a script that would get the current date and time, check a
> mysql database for all rows that met the date critieria, and automatically
> email everyone that met that criteria.
>
> I am guessing most administrators would not want to make sure they are in
> front of a browser at midnight every night to run the script, so how can I
> do this? :)
>
> Thanks ahead of time!
>
> Rick
>
>