• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

run webpage every hour

kabatak

New Member
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:
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
PHP:
$time = date("G\\:i");
if ($time = "17:00")
{
//runs script
}
else
{
exit;
}
if ($time = "18:00")
{
//runs script
}
else
{
exit;
}

and do that for every hour of the day. (stick it at the top of your script).

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:
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.
 
Back
Top