I have a file that works fine from manual execution, but it does not work from a cron job.
I used full-path in the command area like,
/usr/local/bin/php /home/kam/public_html/filename.php
I have a file that works fine from manual execution, but it does not work from a cron job.
I used full-path in the command area like,
/usr/local/bin/php /home/kam/public_html/filename.php
收起
If you have cURL installed, this should work:
Replace:
/usr/local/bin/php /home/kamalam4/public_html/filename.php
With: (replace www.your-domain.com with your own site domain/URL)
curl --silent --compressed http://www.your-domain.com/filename.php
报告相同问题?