Running a cron job through PHP/Apache?!

Posted on 16th Feb 2014 by admin

Hello all,
I have a PHP script which makes a cron file from user input. When i try to run the cron job via system() the job doesn't run, I suspect it has something to do with permissions. Any ideas on how I would go about getting this to work?

Here is the system() call:
Code: echo $scriptOutput = system('crontab ' . $cronFile, $retval);
Thank you in advance for your help

Other forums