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
rashaverak
Forum Newbie
Posts: 6 Joined: Wed Jul 07, 2004 8:56 am
Post
by rashaverak » Thu Jul 08, 2004 5:58 am
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 » Thu Jul 08, 2004 6:31 am
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 » Mon Jul 12, 2004 9:51 am
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.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Mon Jul 12, 2004 11:45 am
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 » Tue Jul 13, 2004 2:06 am
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
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue Jul 13, 2004 3:02 am
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.
liljester
Forum Contributor
Posts: 400 Joined: Tue May 20, 2003 4:49 pm
Post
by liljester » Mon Jul 19, 2004 2:58 pm
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"