i need to set a crontab from a php script. i know that it can be set by
system("echo '* * * * * echo \"Hello world\"' >> cron.crontab"); system("crontab cron.crontab"); //cron.crontab is the file name of the crontab
"cron.crontab" file is created in root directory, but crontab is not working as expected! when i try the following command, it says that no crontab is set!
crontab -l
i think i am missing something. i am using yii framework. is there an extension to handle cron in yii framework? is there any other way to do it? Please help me. Thanks.