title: PHP: move_uploaded_file() failed to open stream: No such file or directory
body: <p>I'm trying to get PHP to move an uploaded file from the tmp directory to somewhere permanent on my webserver. It seems simple enough, but I'm getting this error:</p>
  
  <p><code>Unable to move 'C:\UniServer\tmp\php3F62.tmp' to 'static/images/slides/1/1.jpg'</code></p>
  
  <p>Pretty straight-forward, right? It can't find the destination folder.</p>
  
  <p>My question is: <strong>How do I reference the desired target directory?</strong> </p>
  
  <p>Is the reference relative to the script's position on the server? Or is it relative to the URL? Or the <code>PHP DOCUMENT_ROOT</code>? Or the OS's filesystem? Or something else?</p>
  
  <p>I can't find the answer in the PHP documentation or indeed in any of the similar questions here on SO..</p>
  
  <p>Can anyone help? Thanks.</p>