title: Get correct directory path when moving uploaded files in codeigniter
body: <p>I need to get the correct directory path for my codeigniter application. </p>
  
  <p>I need to send all of my uploaded files in this directory:</p>
  
  <pre><code>localhost/myapplication/uploads/temp1
  </code></pre>
  
  <p>I have tried putting this code in my directory path for my mkdir, copy and unlink files:</p>
  
  <pre><code>$tempDirectory = base_url().'uploads/temp'.$somestring.'/';
  </code></pre>
  
  <p>But I realized that http addresses are not applicable when moving files. How do I move my files to the directory I want in my application?</p>