I have a php file that needs to be run in my public_html. I'm using the following code in the cron command field in the cpanel but i'm getting an empty log and expecting an email from the output of my index.php. Can anyone help Thanks
/usr/local/bin/php /home/mydirectory/public_html/index.php 2>&1 >> /home/mydirectory/public_html/cron_output.log
/usr/local/bin/php /home/mydirectory/public_html/index.php 2>&1 >> /home/mydirectory/public_html/cron_output.log