PHP and batch-files
am 01.06.2007 13:38:00 von Gustav Wiberg
Hi there!
=20
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)
=20
Best regards
Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP and batch-files
am 01.06.2007 14:30:05 von Elizabeth Smith
Gustav Wiberg wrote:
> 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
The easiest way to do this would be to simply install the cli binary as
well - php.exe (NOT php-cgi.exe) which doesn't need a webserver - and do
a scheduled task that calls "path to your cli"/php.exe "path to your
script here" - I use php a lot on windows for generic scripting tasks.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re: PHP and batch-files
am 01.06.2007 14:38:00 von Gustav Wiberg
Hi there!
Where/how do I install that? =20
Best regards
/Gustav Wiberg
-----Original Message-----
From: Elizabeth Smith [mailto:emsmith@elizabethmariesmith.com]=20
Sent: Friday, June 01, 2007 2:30 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Re: PHP and batch-files
Gustav Wiberg wrote:
> Hi there!
> =20
> I want to use PHP to run as a "batch-file" on the server every night. Wh=
at are the alternatives for doing this.
> I'm using II6 and Win2003 Server, and PHP as an ISAPI-module. (vers 5.2.2=
)
> =20
> Best regards
> Gustav Wiberg
The easiest way to do this would be to simply install the cli binary as=20
well - php.exe (NOT php-cgi.exe) which doesn't need a webserver - and do=20
a scheduled task that calls "path to your cli"/php.exe "path to your=20
script here" - I use php a lot on windows for generic scripting tasks.
--=20
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: PHP and batch-files
am 01.06.2007 19:28:09 von Niel Archer
Hi
> Where/how do I install that?
It's part of the windows distribution.
Read the documentation here http://www.php.net/manual/en/install.general.php
for a start
Niel
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: PHP and batch-files
am 04.06.2007 09:00:00 von Gustav Wiberg
Hi there!
Aha. Thanx. That was what I was searching for... :-)
Best regards
/Gustav Wiberg
=20
-----Original Message-----
From: Lucas van Lierop [mailto:lucas@rhinocreations.com]=20
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=E5!
Lucas
-----Original Message-----
From: Gustav Wiberg [mailto:gustav@hmn.se]=20
Sent: vrijdag 1 juni 2007 13:38
To: 'php windows' (php-windows@lists.php.net)
Subject: PHP and batch-files
Hi there!
=20
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)
=20
Best regards
Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP and batch-files
am 11.12.2008 00:31:54 von Don MacGregor
Hi,
I have a batch file on my server (Win 3K + IIS 6) I can run that by double
click now I want to run that batch file using my PHP page (that Batch file
run an exe on my Server and create a new text file as a result of that) Is
this possible? How?
Thanks
Elizabeth Smith wrote:
>
> Gustav Wiberg wrote:
>> 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
>
> The easiest way to do this would be to simply install the cli binary as
> well - php.exe (NOT php-cgi.exe) which doesn't need a webserver - and do
> a scheduled task that calls "path to your cli"/php.exe "path to your
> script here" - I use php a lot on windows for generic scripting tasks.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
View this message in context: http://www.nabble.com/PHP-and-batch-files-tp10911250p2094645 7.html
Sent from the Php - Windows mailing list archive at Nabble.com.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php