title: file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0
body: <p>I need to download a sample .csv file in my application.I'm using Code Igniter framework my function within controller in given below </p>
  
  <pre><code>public function dwnEmp(){
      $this-&gt;load-&gt;helper('download');
      $path = file_get_contents(base_url('/application/modules/payroll/views/employee/sample_Employee_details.csv'));
      force_download('sample_Employee_details.csv', $path);
  }
  </code></pre>
  
  <p>whenever I'm trying to download the file it is giving me </p>
  
  <blockquote>
    <p>Message: file_get_contents(): http:// wrapper is disabled in the
    server configuration by allow_url_fopen=0</p>
  </blockquote>
  
  <p>I have made allow_url_fopen = 1 in my cpannel &amp; whm through multiphpini but in php info its still showing allow_url_fopen=1.I have also restarted apache server but still the problem remains.</p>