1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Cron Job Tutorial?

Discussion in 'PHP' started by hugocub, Sep 14, 2011.

  1. #1
    Does anyone know of one? I want to start using cron jobs, but I can't find a tutorial for php anywhere.
     
    hugocub, Sep 14, 2011 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    Rukbat, Sep 14, 2011 IP
  3. chanif.alfath

    chanif.alfath Active Member

    Messages:
    148
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    88
    #3
    chanif.alfath, Sep 14, 2011 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #4
    Its not always that straight forward, depending on the server build the command to call may be different.

    The server my sites are on at present refused to work with anything other than a wget
     
    sarahk, Sep 14, 2011 IP
  5. hugocub

    hugocub Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I know what it does, I should have been more specific. I need a tutorial for setting up a command to execute a php script
     
    hugocub, Sep 15, 2011 IP
  6. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #6
    There is none - just the name of the script file. Assuming your script file is named cronjob.php, the command is

    cronjob.php

    Nothing more than that.
     
    Rukbat, Sep 15, 2011 IP
  7. hugocub

    hugocub Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Oh, I didn't know it was that easy.... Sorry about this stupid thread then.
     
    hugocub, Sep 15, 2011 IP
  8. ironmankho

    ironmankho Active Member

    Messages:
    393
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #8
    it is very easy if you are using Cpanel (Linux) ----> Advance panel
     
    ironmankho, Sep 15, 2011 IP
  9. hugocub

    hugocub Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Yeah, that's what I'm using.
     
    hugocub, Sep 15, 2011 IP
  10. Stella_Roberts

    Stella_Roberts Peon

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Hey you can find PHP tutorial on w3school its good site to learn any programming language.
     
    Stella_Roberts, Sep 16, 2011 IP
  11. themullet

    themullet Member

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #11
    themullet, Sep 16, 2011 IP
  12. hugocub

    hugocub Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I already know php, I just have never used cron jobs before.
     
    hugocub, Sep 17, 2011 IP
  13. hugocub

    hugocub Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    hugocub, Sep 17, 2011 IP
  14. akumar2

    akumar2 Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Thank you very much.
     
    akumar2, Sep 20, 2011 IP
  15. nusrin

    nusrin Greenhorn

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #15
    does anyone know about itself? i want to get best information from here.help me.
     
    nusrin, Sep 21, 2011 IP
  16. REtec

    REtec Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    If you're using Cpanel, then it is pretty much plug and play. You just need to specify time intervals and the file to execute.

    @chanif.alfath - nice beginner tut on creating a cron file
     
    REtec, Sep 21, 2011 IP