title: APPPATH codeigniter doesnt work on server
body: <p>I have a problem in codeigniter - after I upload it to the server I am requiring a file in a model from libraries folder </p>
  
  <pre><code>&lt;?php
  require_once(APPPATH.'libraries/MY_Model.php');
  Class scroll_news_model extends MY_model
  {
   public function __construct()
   {
      parent::__construct("scroll_news");
   }
  }
  </code></pre>
  
  <p>this code was working fine in my localhost environment but I keep getting this error after I upload it:</p>
  
  <blockquote>
    <p>Fatal error: require_once() [function.require]: Failed opening required 'application/libraries/MY_Model.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/arab2day/public_html/temp/arab2day/application/models/scroll_news_model.php on line 2</p>
  </blockquote>