Self executing PHP script - is this possible?

Discussion in 'PHP' started by gingerbreadweb, May 23, 2009.

  1. #1
    Hey all

    Just wondered - is it possible to create a PHP script that runs itself routinely, for example every 24 hours?

    Cheers
     
    gingerbreadweb, May 23, 2009 IP
  2. alfa_375

    alfa_375 Active Member

    Messages:
    445
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Yes! You have to setup the cron jobs your server.
     
    alfa_375, May 23, 2009 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    Yes as the above person said cron is the best thing u can do
     
    Bohra, May 24, 2009 IP
  4. ranacseruet

    ranacseruet Peon

    Messages:
    302
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    its not php. Its your server, that will do it.
     
    ranacseruet, May 24, 2009 IP
  5. gingerbreadweb

    gingerbreadweb Active Member

    Messages:
    512
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #5
    gingerbreadweb, May 24, 2009 IP
  6. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #6
    Bohra, May 24, 2009 IP
  7. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Sounds decent for shared hosting, or a host that doesn't allow you to access the crontab.
     
    kblessinggr, May 24, 2009 IP