Click to See Complete Forum and Search --> : Auto run scripts at certain time inWin2K


Anon
07-03-2001, 08:36 PM
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 tryed 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

Anon
07-03-2001, 11:57 PM
Just call php.exe myscript.php to avoid loading the script into the borwser.

Anon
07-04-2001, 12:47 AM
Type in

at ?

at the console. I never used it, but this should help you.

Anon
07-04-2001, 12:53 AM
yeh i've tried 'at' it is actually the scheduler program for windows, but you type the task in, instead of user the scheduler program in the control panel.

Anon
07-04-2001, 01:16 AM
For me, the scheduler called with

php.exe C:\Mypath\myphpfile.php

works fine.