Re: Running a PHP script automatically?
| From: | Sascha Cunz | Date: | Mon, 23 Sep 2002 02:37:14 +0000 |
| Subject: | Re: Running a PHP script automatically? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117226@lists.php.net to get a copy of this message | ||
> On the Linux box compile PHP as CGI (i.e. don't configure it as an apache
> mod). Then you can just run your script from the the command-line.
This is called CLI (Command Line Interface), not CGI (Common Gateway
Interface). The CGI is called from an WebServer; CLI get's called from a
shell-(script) or any thing.
Anyway, this is the most likely way to do this. The PHP Binaries for Windows
already ship with a CLI-Version of PHP which lives in the root of your PHP
folder. Most Linux Distribution have also one (I'm not using Red Hat), which
would usually live in /usr/bin/php ( to find out, type: whereis php).
The CLI can fine be scheduled either by a Vixie-Crontab or by a windows
scheduler task.
Sascha