Closed Thread
Results 1 to 6 of 6

Thread: run webpage every hour

  1. #1
    FWS Addict kabatak will become famous soon enough kabatak's Avatar
    Join Date
    Jul 2002
    Posts
    898

    Windows run webpage every hour

    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.

  2. #2
    Sup, Recoil here. themoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond repute themoose's Avatar
    Join Date
    Jun 2005
    Location
    Uzbekistan
    Posts
    8,805
    install CRON and do that.

  3. #3
    FWS Addict kabatak will become famous soon enough kabatak's Avatar
    Join Date
    Jul 2002
    Posts
    898
    is there cron for windows xp?

  4. #4
    Sup, Recoil here. themoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond reputethemoose has a reputation beyond repute themoose's Avatar
    Join Date
    Jun 2005
    Location
    Uzbekistan
    Posts
    8,805
    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 Code:
    $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 by themoose; December 6th, 2005 at 11:46.

  5. #5
    FWS Addict kabatak will become famous soon enough kabatak's Avatar
    Join Date
    Jul 2002
    Posts
    898
    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.

  6. #6
    Hrm? Tree is a name known to allTree is a name known to allTree is a name known to allTree is a name known to allTree is a name known to allTree is a name known to allTree is a name known to all Tree's Avatar
    Join Date
    Aug 2005
    Location
    /home
    Posts
    3,059
    Scheduled task should work.
    Life is very short, and there's no time for fussing and fighting my friend.

Closed Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts