Anusha
Anusha

Reputation: 175

Execute cron job by PHP

I am using cPanel for my site, I want to set up a new cron job on triggering an event by PHP. Also I want to delete previously exiting cron job while creating new cron.

Also I want to set start and end date/time for the new cron

Is that possible? Please help on this.. I need it immediately

Also where cPanel actually stores cron jobs, I had searched in my files in home/etc/ I couldn't find.

Upvotes: 0

Views: 181

Answers (1)

AdamskiFTW
AdamskiFTW

Reputation: 109

Here is a tutorial on how to handle cron jobs in PHP. Also, they'll be stored in /var/spool/cron/username

Upvotes: 1

Related Questions