title: unlink function in CI throws warning
body: <p>I am using codeigniter 2. when using the unlink() php function it throws the errors. Here is my model function in CI to delete files:</p>
  
  <pre><code>    function delete($file)
      {
          $delete_files = $this-&gt;gallery_path_url.$file;
          if(!empty($delete_files)) {  
              unlink($delete_files);
          }
      }
  </code></pre>
  
  <p>When clicking delete links, it shows the warning:</p>
  
  <p><strong>unlink() [function.unlink]: http does not allow unlinking</strong></p>
  
  <p>is there any alternatives function for unlink to avoid the warning</p>