Re: cron with php as apache module
| From: | Analysis & Solutions | Date: | Fri, 22 Mar 2002 19:26:13 +0000 |
| Subject: | Re: cron with php as apache module | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89730@lists.php.net to get a copy of this message | ||
Even if you can't get, or don't want to bother getting, PHP as a
standalone CGI type program, you can still execute via crontab. Make a
web page that you want to have run, then put something along the lines
of:
lynx http://localhost/scriptname.php
as the command in the crontab file. Do note, you'll likely need to take
steps to protect the script from being run by people you don't want
touching it. You could use SSL, cookies and REMOTE_ADDR, among other
things to accomplish that.
--Dan
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y