Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Here is how I implemented it:
$output = shell_exec('crontab -l');
file_put_contents('/tmp/crontab.txt', $output.$rule.PHP_EOL);
echo exec('crontab /tmp/crontab.txt');
Refine your question. from PHP with cron usually don't work, it's from cron that work with PHP.
Hmm, I don’t know what to offer you, but this is Linux) there is a cron process there, it usually sits as root, what do you think it is intended for? I did not set up this process myself, but I think there are enough instructions on the Internet, such as this
help.ubuntu.ru/wiki/cron
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question