Results 1 to 5 of 5

Thread: [RESOLVED] Cron Jobs

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2007
    Posts
    1,072

    Resolved [RESOLVED] Cron Jobs

    I need to set up a cron job that will auto execute every 24 hrs...

    The script is named daily.php

    Please help

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Cron Jobs

    cron jobs arnt PHP, they are *nix...

    This may help http://www.adminschoice.com/docs/crontab.htm
    My usual boring signature: Something

  3. #3
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Cron Jobs

    Hi Zach,

    What's your hosting setup? Shared? Dedicated server? Free hosting?

    Unless you have a dedicated server your probably not going to have access to a shell to access the crontab directly.

    If you're on a shared host then they may give you support for cronjobs via the control panel, they usually have a nice UI to setup cronjobs.

    If you're on a Windows server then it'll have to be Schedules Tasks.

    Hope this helps
    Chris

  4. #4
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Cron Jobs

    Quote Originally Posted by the182guy
    If you're on a Windows server then it'll have to be Schedules Tasks.
    So you can actually write a php script, and then have scheduler run it whenever you want?
    Easy? Never tried. Might wanna. Send out spam to all vbf user's sleeping or sth.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  5. #5
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Cron Jobs

    Quote Originally Posted by StrangerInBeijing
    So you can actually write a php script, and then have scheduler run it whenever you want?
    Easy? Never tried. Might wanna. Send out spam to all vbf user's sleeping or sth.
    Yes, a PHP script can be executed like a batch script. It is actually more powerful than a batch script but lacks the Windows integration you would get with Windows Script host, however.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width