I have setup cron job, it is working properly, however when i directly runs the php file(from the path/url) it successfully runs, but from cron its not. However i set another very simple file to make sure my cron command/path is set correctly i created another file and used simple php mail function and its is running successfully. Kindly suggest me the possible areas to look into it. (I am using Cpanel)
Share
Instead of putting in cronjob command like
put command like this:
if you want to suppress output you can add
> /dev/nullat the end.So full command would be:
Hope this helps!