You can also pass arguments to the php file through the batch file if
needed. I've used this loads recently mixing a crappy little VB app into
PHP.

Check the manual, there's a nice chapter on running PHP on the command
line, and helped me through most of the problem I had. If your only
running php.exe for this one script, you might also consider making a
custom php.ini file and putting it in with the php.exe folder. Although
if you use php on your webserver on the same machine, this wouldn't be
worth doing...

chris kranz
fatcuban.com
 


-----Original Message-----
From: Mike Brum [mailto:[EMAIL PROTECTED] 
Sent: 24 March 2003 17:13
To: Henrik Bjernersjø; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] php as exe in windows


The first step is to obviously install PHP and have it associated with
.php files on your system and create your script that works 100% when
you just double-click on the file.

After that's working, create a .bat file that makes a call to the PHP
executible (C:\PHP\php filename.php).

Then, create a Scheduled Task (in the Control Panel) to run every 5
minutes that points to that batch file.

Good Luck


-----Original Message-----
From: Henrik Bjernersjø [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 11:49 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] php as exe in windows


Hi

I want to create an application that I can run on my web-server every
five minutes. The application should look in my ftp-catalogue and move
incomming files to other directories. I want to do this in php. Is it
possible - and in that case - how?


Thanks in advance!

--
Henrik Bjernersjø
Market Broker AS



--
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





--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to