title: Why is move_uploaded_file not working for me
body: <p>I am using mysqli procedural programming and the move_uploaded_file isnt working for me now. I am working locally now so I have all privileges needed.</p>
  
  <pre><code>if(move_uploaded_file($_FILES['image']['tmp_name'], $target)){ 
      redirectTo($settings['siteDir'] . 'admin/cpanel/');
  }
  </code></pre>
  
  <p>I have never had problems before now. Is it the mysqli that is messing things up?
  These are the errors I am getting</p>
  
  <pre><code>Warning: move_uploaded_file(http://localhost/websites/mugendo.ie/images/uploads/mai.jpg) [function.move-uploaded-file]: failed to open stream: HTTP wrapper does not support writeable connections in D:\xampp\htdocs\websites\mugendo.ie\admin\addnews.php on line 29
  
  Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'D:\xampp\tmp\php1498.tmp' to 'http://localhost/websites/mugendo.ie/images/uploads/mai.jpg' in D:\xampp\htdocs\websites\mugendo.ie\admin\addnews.php on line 29
  </code></pre>