install CRON and do that.
Hello, I have WinXP with an Apache server and PHP. I want to run a php script locally (ie: http://localhost/script.php ) every hour. How do I do this? Can I do this using Windows Scheduled Task? Thanks.
Last edited by kabatak; December 6th, 2005 at 10:34.
install CRON and do that.
hmm.. apparently not. sorry about that.
onething you could try, is import the time via php and do lots of if's.
(i've added the time)
ie
and do that for every hour of the day. (stick it at the top of your script).PHP Code:$time = date("G\\:i");
if ($time = "17:00")
{
//runs script
}
else
{
exit;
}
if ($time = "18:00")
{
//runs script
}
else
{
exit;
}
edit: oh, and you'll need to get it to refresh.
There's probably a much easier way to do it though, just the way i'd do it.
Last edited by themoose; December 6th, 2005 at 11:46.
I don't actuallly want to open my browser, I just want it to run silenty as if it was a cron job on linux.
Scheduled task should work.
Life is very short, and there's no time for fussing and fighting my friend.
Bookmarks