I have written a php file which sends email which is running via browser correctly. .I want to automatically send mails to user so i set up a job using "cron" after every 15 minutes
My php file name is "mail.php" and it is under folder "/public_html/myfolder/mail.php"
I have writen the command as
php -f /public_html/myfolder/mail.php
but it is showing error as "No input file specified."
so i tried using
/usr/local/bin/php -f /public_html/myfolder/mail.php
but the error was
"Could not open input file: /public_html/suvichar/mail.php
i have given the 777 permission to "mail.php"
can you please tell me what might be the issue can anybody give me exact command for cron to execute php file