title: PHP automatic mail... "No input file specified."
body: <p>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</p>
  
  <p>My php file name is "mail.php" and it is under folder "/public_html/myfolder/mail.php" </p>
  
  <p>I have writen the command as</p>
  
  <pre><code>php -f /public_html/myfolder/mail.php
  </code></pre>
  
  <p>but it is showing error as "No input file specified."</p>
  
  <p>so i tried using</p>
  
  <pre><code>/usr/local/bin/php -f /public_html/myfolder/mail.php
  </code></pre>
  
  <p>but the error was </p>
  
  <p>"Could not open input file: /public_html/suvichar/mail.php</p>
  
  <p>i have given the 777 permission to "mail.php"</p>
  
  <p>can you please tell me what might be the issue
  can anybody give me exact command for cron to execute php file</p>