I am trying to get PHP to move the downloaded file from the tmp directory to a permanent location on my web server. This seems simple enough, but I get this error:
Unable to move 'C:\UniServer\tmp\php3F62.tmp' to 'static/images/slides/1/1.jpg'
Pretty straightforward, right? He cannot find the destination folder.
My question is: How do I specify the desired destination directory?
Is the link relative to the position of the script on the server? Or is it relative to the url? Or PHP DOCUMENT_ROOT ? Or an OS file system? Or something else?
I cannot find the answer in the PHP documentation or even in any of the similar questions here on SO ..
Can anyone help? Thanks.
php apache file-upload
Chuck le butt
source share