SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: php crontab

  1. #1
    SitePoint Zealot
    Join Date
    Feb 2010
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    php crontab

    Hello,

    What I am trying to do is use PHP to create Cron Job on my linux server. I tried
    exec("crontab -u jancom $pathtophpfile", $response), but it returns empty array.

    I also want to set time to when should the crontab execute the task.

    Help!

  2. #2
    SitePoint Zealot
    Join Date
    Feb 2010
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    also I want to run each task JUST ONCE

  3. #3
    Web Developer stickycarrots's Avatar
    Join Date
    Jul 2005
    Location
    Illinois State University
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was trying to find something like this and was unable to. I would love it if someone could find it. Not sure if it's possible though.

  4. #4
    SitePoint Zealot
    Join Date
    Feb 2010
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maybe if I could also setup time based on time() function...

    Can anyone help?

  5. #5
    SitePoint Zealot
    Join Date
    Feb 2010
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A friend told me its not possible to do it.

    So.. need to find a way around.

    Maybe if I make database, put in scheduled tasks, than create php file that is ran by crontab every minute checking which tasks in database have to run and run them?


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
  •