title: Running a cron job with CodeIgniter
body: <p>I need to run a cron job on a file using CodeIgniter but CodeIgniter won't let me run a file directly. i.e.</p>
  
  <p>I can run the controller in the browser with:</p>
  
  <pre><code>api.example.com/index.php/cron
  </code></pre>
  
  <p>My hosting only lets me run PHP files and I can't do it via the command line because it won't let me run wget or curl.</p>
  
  <p>How can I make CodeIgniter run a file like below:</p>
  
  <pre><code>api.example.com/index.php/application/controller/cron.php
  </code></pre>
  
  <p>I can call that file with my hosting.</p>
  
  <p>Updated</p>
  
  <p>Thought i would just update none of the options worked for me i ended up changing hosting and doing the following.</p>
  
  <p><a href="http://devsforrest.com/116/setup-a-cronjob-to-run-every-5-minute-on-media-temple" rel="nofollow">http://devsforrest.com/116/setup-a-cronjob-to-run-every-5-minute-on-media-temple</a></p>