exec(), crontab and web permissions
So how about this idea?
I'm using PHPList to send newsletters and have to uncomment the cronjob when I'm ready have a new one processed. So I wrote a function that gets a copy of the current crontab. Code:
exec("crontab -l", $crontab); Code:
exec('crontab '.$temp_file); And how safe is it to be running this kind of thing on the web anyway? The only link to this program would be from within PHPList which does some user authentication. And I don't use any user data in the exec() function. So I'm fine.. right? |
Why not look at http://docs.phplist.com/CronJobExamples first?
|
All times are GMT -5. The time now is 12:36 AM. |