title: Cron job won't process require_once
body: <p>I have a Cron job setup to run every 5min.  The Cron job is as follows:</p>
  
  <pre><code>php /var/www/vhosts/default/htdocs/Mail-test/index.php
  </code></pre>
  
  <p>At the end of my index.php script is the following:</p>
  
  <pre><code>$path = $base_path . trim($row['company']) . '/Users/' . trim($row['name']) . '/Upload/';
  $zip_processing_file = $path . 'zip.php';
  
  require_once "zip_processing_file";
  </code></pre>
  
  <p>However when the Cron job is run, I get an error stating that the following directory which <code>= $zip_processing_file</code> does not exist in <code>/var/www/vhosts/default/htdocs/Mail-test/</code></p>
  
  <p>I can't seem to figure out this problem.  I have tried include but that gives the same problem.  Only way I got this to work is by putting </p>
  
  <pre><code>header("location: $zip_processing_file");
  </code></pre>
  
  <p>and then hitting <code>Mail-test/index.php</code> from a web browser, then it will cycle through the whole process, but I can't do it through a web browser, I need the Cron job to work.  Thanks!</p>