title: set up Cron job to run PHP script
body: <p>I know this question has been asked before, but none of the answers are working for me.
  I'm trying to run a simple PHP script every night at midnight. I created a file called "autoDelete.php" that contains just this code:</p>
  
  <pre><code>&lt;?php 
    include 'my-database-connection.php';
    mysql_query("DELETE FROM meetings WHERE indexDate &lt; NOW()");
  ?&gt;
  </code></pre>
  
  <p>I know this script is working because if I navigate to it in a browser, it does what it should.</p>
  
  <p>I then set up the Cron job (via GoDaddy cPanel) to run every minute, with a command to run the script using this:</p>
  
  <pre><code>* * * * /usr/bin/php -q /home/username/public_html/autoDelete.php
  </code></pre>
  
  <p>However, this is not working. I suspect this has something to do with whatever precedes the "/home" in the command.</p>