Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am developing an internal system for a company with PHP using Zend framework. I need one of its functions to execute on a time specified by user.

My research on this matter found me several ways of doing this using CPanel Cron jobs and setting up scheduled tasks on the server. But in this scenario, I don't have a CPanel and I already use scheduled tasks. But my challenge is to provide an interface for the user to specify the time to trigger the function.

share|improve this question
up vote 2 down vote accepted

cron is an external program, you can call it from PHP via exec() or shell_exec() (their only difference is how they handle output).

You'll probably want to build a friendly user interface around it, and be extremely strict with what ends up getting executed, but that's about it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.