Click to See Complete Forum and Search --> : Auto run php files on server, Win2K
How can I run my php files at a certain time in windows 2000. I want to update the database at a certain time every day. I've tried using the scheduler but this just loads the php file into the browser and shows the code, the php files need to be loaded in the browser from the localhost dir.
thanks
mithril
07-04-2001, 03:08 AM
Andrew,
I'm guessing that this script doesn't need any user input to function? If so, try running the script from command line:
c:\php.exe -q c:\php_scripts\scriptname.php
If the Win32 Scheduler doesn't allow parameters (I axed Scheduler back in Win95 because it was too damned annoying and now can't remember whether it does or not), try placing that command in a *.bat file and executing the batch file with Scheduler. HTH,
Cheers,
Geoff A. Virgo
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.