Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.