user5349142
user5349142

Reputation: 127

Schedule tasks via PHP

Is it possible to create and schedule a task from within a php app? I want to give my users the option to schedule and run the script at a time of their choosing without them getting into cron jobs or windows task scheduler.

Upvotes: 1

Views: 178

Answers (1)

jeroen
jeroen

Reputation: 91734

You could give your users access to a "cron" table that mimics the options that cron offers. There they can store the jobs the need to execute.

Then you can run a cron job every minute that checks that table to see if there are entries / jobs that need to be processed.

Upvotes: 1

Related Questions