title: Using CronTab to run php scripts
body: <p>I need to send emails hourly and daily. I've tried nearly everything but it appears my crontab just won't work. If I run the scripts via a browser e.g </p>
  
  <pre><code>http://localhost/Maisha/Functions/sendhourlymails.php  
  </code></pre>
  
  <p>my emails get sent beautifully.(I moved default website localhost to public_html.) I don't know whats wrong. I read some post in stack overflow including the executable path of php helps hence I've put the /usr/bin/php before the actual script to be cronned will work but it does not. Removing /usr/bin/php does not work. Adding php before the actual script isn't working. 
  I have the following entries in my crontab. </p>
  
  <pre><code># m h  dom mon dow   command
  0  *  *   *   *    /usr/bin/php /home/maxwell/public_html/Maisha/Functions/sendhourlymails.php
  0  0  *   *   *    /usr/bin/php /home/maxwell/public_html/Maisha/Functions/senddailymails.php
  </code></pre>