title: Codeigniter server root
body: <p>I am trying to upload video in server using Codeigniter, In the localhost i can do it, but when in the server it does not work. Even though <code>do_upload()</code>  function returns true.</p>
  
  <p>When i'm testing the server root,    <code>print_r($_SERVER['DOCUMENT_ROOT']);</code>  it returns </p>
  
  <p><code>/var/www/mjpp/data/www/supps.mydomainname.com</code></p>
  
  <p>Also the
  <code>$updata = $this-&gt;upload-&gt;data();</code> returns</p>
  
  <p><code>[file_path] =&gt; /var/www/mjpp/data/www/supps.mydomainname.com/public/video</code></p>
  
  <p>Can you tell me why <code>/var/www/mjpp/data/</code> is appearing before my main domain name , and is it the cause of any error for uploading video?</p>
  
  <p>Thank you in advance, sorry for my bad english.</p>