I was wondering if anyone knew how to do this? My knowledge in Linux is somewhat limited in this regard.

Basically I know how to create, edit and delete cron entries using crontab -e, but I want to be able to do this with PHP.

From what I understand, I'll basically use PHP to generate a crontab file, and then write over the current one (Then I'm guessing some command will have to be run that will tell the OS to update all the cron.daily etc files).

So in a nut shell, I want to use PHP to write into crontab -e's file. I can figure out the functions on how to manage the entries myself, but just need help with the file.