Home arrow PHP arrow PHP: Best Methods for Running Scheduled Jobs

PHP: Best Methods for Running Scheduled Jobs

One of the users at the Dev Shed forums is searching for the best method to run scheduled jobs in PHP. A few people have chimed in, but we would like to hear your opinion.

By: James Payne
Rating: starstarstarstarstar / 0
June 28, 2012

print this article



User mikemike27 asked the following in the Dev Shed forums:

PHP-General - What is the best method for running scheduled jobs in PHP?
I have a webpage form that requires a date and time to be submitted. When it's submitted I need the back-end to run a script at the time and date specified.
Have you ever needed to do something like this? I've tried the exec() function with an at command inside. It won't work. I have no idea why and there doesn't seem to be a lot of advice on google about this. so either no one has ever had a problem with it before or no one has ever tried because there is a much simplier way.

We have received a few responses so far, but would like to know if you have any other methods not yet displayed? Disagree or agree with the suggestions thus far? Drop by and let us know!


>>> More PHP Articles          >>> More By James Payne

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates


Dev Shed Tutorial Topics: