title: codeigniter include common file in view
body: <p>Hi all I have a site developed in codeigniter and I wanto to store into a file called common.php some javascript/PHP function that I use in many pages.
  I have tried in this mode:</p>
  
  <pre><code>require(base_url().'application/libraries/common.php'); //I have tried also include
  </code></pre>
  
  <p>This return me this error:</p>
  
  <pre><code>A PHP Error was encountered
  
  Severity: Warning
  
  Message: require() [function.require]: http:// wrapper is disabled in the server configuration by allow_url_include=0
  </code></pre>
  
  <p>I'm going to my php.ini and I turn On allow_url_include, restart apache and when I try to load the page return me now this error:</p>
  
  <pre><code>A PHP Error was encountered
  
  Severity: Warning
  
  Message: require() [function.require]: http:// wrapper is disabled in the server configuration by allow_url_include=0
  
  Filename: backend/hotel_view.php
  
  Line Number: 6
  
  A PHP Error was encountered
  
  Severity: Warning
  
  Message: require(http://demo.webanddesign.it/public/klikkahotel.com/application/libraries/common.php) [function.require]: failed to open stream: no suitable wrapper could be found
  
  Filename: backend/hotel_view.php
  
  Line Number: 6
  
  
  Fatal error: require() [function.require]: Failed opening required 'http://demo.webanddesign.it/public/klikkahotel.com/application/libraries/common.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/public/klikkahotel.com/application/views/backend/hotel_view.php on line 6
  </code></pre>
  
  <p>What can I do to include a simple file into my pages?</p>