shedule scripts under w2k and IIS 5

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
rashaverak
Forum Newbie
Posts: 6
Joined: Wed Jul 07, 2004 8:56 am

shedule scripts under w2k and IIS 5

Post by rashaverak »

Hello,

please what are you using when you need to run php script once per hour on w2k using IIS 5.0 ?
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post 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.
rashaverak
Forum Newbie
Posts: 6
Joined: Wed Jul 07, 2004 8:56 am

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

how'd you ask task scheduler to run it? Can you post the run line?

Moved to Webservers
rashaverak
Forum Newbie
Posts: 6
Joined: Wed Jul 07, 2004 8:56 am

Post 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 :(
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Post 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"
Post Reply