Uploading files
| From: | Hugh Dickinson | Date: | Tue, 02 Dec 2003 21:06:46 +0000 |
| Subject: | Uploading files | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-31857@lists.php.net to get a copy of this message | ||
I'm trying to upload image files to the server using http file upload. The
files seem to make it to the sever okay, but once they're ther and I try to
move them to where I want them, I get the following error:
Warning: move_uploaded_file(./images/exec/Editor.jpg): failed to open
stream: Permission denied in
/home/hudson/misc/dtr8hcj/public_html/changeexec.php on line 24
Is this my fault, or is it due to some sever configuration beyond my own
control. The line of code the error refers to is:
if(move_uploaded_file($_FILES[$imagename]['tmp_name'],$imageurl))
where $_FILES[$imagename]['tmp_name'] is a valid variable, and the path
specified by $imageurl definitely exists.
Any help would be greatly appreciated.
Cheers
Hugh Dickinson