RE: PHP and batch-files
| From: | Gustav Wiberg | Date: | Mon, 04 Jun 2007 07:00:00 +0000 |
| Subject: | RE: PHP and batch-files | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-28039@lists.php.net to get a copy of this message | ||
Hi there!
Aha. Thanx. That was what I was searching for... :-)
Best regards
/Gustav Wiberg
-----Original Message-----
From: Lucas van Lierop [mailto:lucas@rhinocreations.com]
Sent: Saturday, June 02, 2007 9:55 AM
To: 'Gustav Wiberg'; ''php windows''
Subject: FW: PHP and batch-files
Hej Gustav,
You can run php files also command line (without a webserver) just type:
php -f filename
If php is not recognized you need to specify the whole path to the php cli
executable
This way you can easily run php files from the windows task scheduler.
Check: http://nl2.php.net/manual/en/features.commandline.php
Hejdå!
Lucas
-----Original Message-----
From: Gustav Wiberg [mailto:gustav@hmn.se]
Sent: vrijdag 1 juni 2007 13:38
To: 'php windows' (php-windows@lists.php.net)
Subject: PHP and batch-files
Hi there!
I want to use PHP to run as a "batch-file" on the server every night. What
are the alternatives for doing this.
I'm using II6 and Win2003 Server, and PHP as an ISAPI-module. (vers 5.2.2)
Best regards
Gustav Wiberg