Page 1 of 1

shedule scripts under w2k and IIS 5

Posted: Thu Jul 08, 2004 5:58 am
by rashaverak
Hello,

please what are you using when you need to run php script once per hour on w2k using IIS 5.0 ?

Posted: Thu Jul 08, 2004 6:31 am
by kettle_drum
scheduled tasks? Or keep a php script running all the time in the background to continue to loop and then sleep for an hour before looping again.

Posted: Mon Jul 12, 2004 9:51 am
by rashaverak
of course task scheduler was the first thing i tried. It doesnt work, it just says could not start and thats all.


Btw I run the php as an isapi not cgi. I foung on google some tutorials how to do that with php as cgi but not for php as asapi.

Posted: Mon Jul 12, 2004 11:45 am
by feyd
how'd you ask task scheduler to run it? Can you post the run line?

Moved to Webservers

Posted: Tue Jul 13, 2004 2:06 am
by rashaverak
feyd wrote:how'd you ask task scheduler to run it? Can you post the run line?

Moved to Webservers
what line ? it just call a *.bat file every hour.

in the bat file i have

echo off
cls
cmd.exe /c

explorer url




but i dont know if there is some better/other way and and i have still problem that the explorer window do not close :(

Posted: Tue Jul 13, 2004 3:02 am
by feyd
you may want to try "start url" ... as for closing the window, you should be able to write a javascript into the window to automatically close it.

Posted: Mon Jul 19, 2004 2:58 pm
by liljester
for a scheduled task, i set php up to run on command line also (copy php.exe to /windows/system32 folder), then setup scheduled task to run "php.exe c:\path\file.php"