title: Call to undefined function mysqli_connect() [Cron job only]
body: <p>When running a php script by navigating to the file directly on the server (via the web), everything runs fine. </p>
  
  <p>However, when setting up the same file to run via a cron job, I get the error message: </p>
  
  <pre><code>Call to undefined function mysqli_connect() 
  </code></pre>
  
  <p>The cron job is set up to run this file, with permission 744:</p>
  
  <pre><code>php -q /home/username/public_html/seafood/php/lobsteremail.php
  </code></pre>
  
  <p>Any idea why a file might run fine manually but not as part of a cron job?</p>