title: Uploading File Issue In Codeigniter
body: <p>This is my uploadinfg files code in codeigniter application</p>
  
  <pre><code>function upload_logo(){
      $ex=$_FILES['uploadfile']['name'];
      $epld=explode('.',$ex);
      $filename=date("mdyHis").".".$epld[1];
      $userfile_size=$_FILES['uploadfile']['size'];
      $imggtype=$_FILES['uploadfile']['type'];
      if(move_uploaded_file($_FILES['uploadfile']['tmp_name'],"./uploads/".$filename))
          {   
              echo $filename;
          }
      }
  </code></pre>
  
  <p>Here <code>uploadfile</code> is the name of the file field.And i have a folder with name uploads in root folder.When i uploading file i got errors.This is working in our server but not working in client's server.</p>
  
  <pre><code>A PHP Error was encountered
  
  Severity: Warning
  
  Message: move_uploaded_file(./uploads/112911224341.docx) [function.move-uploaded-file]: failed to open stream: Permission denied
  
  Filename: controllers/pms.php
  
  Line Number: 156
  A PHP Error was encountered
  
  Severity: Warning
  
  Message: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpvhzCkw' to './uploads/112911224341.docx'
  
  Filename: controllers/pms.php
  
  Line Number: 156
  </code></pre>
  
  <p>How can i solve this?</p>