Re: move_uploaded_file() access error
| From: | raditha dissanayake | Date: | Mon, 13 Sep 2004 01:13:07 +0000 |
| Subject: | Re: move_uploaded_file() access error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196460@lists.php.net to get a copy of this message | ||
Mike wrote:
hi, there! I have a script that basically tries to upload a file to the server. But when the move_uploaded_function is called, it returns these errors: Warning: move_uploaded_file(../Main/ImgStiri/ceva.jpg): failed to open stream: Permission denied in /home/gotech/public_html/Nou/functii.php on line 81 The webserver user does not have permission to writeo to this directory. before you execute this script use your ftp client to set the correct permissions on the folder. You can start with 777 and go to a more restrictive permission later on if when things are going on smoothly.-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.