Michael Leung wrote: > I have faced the upload file permission denied for weeks. I can't > write a new file/create a directory. I did a test in PHP standalone > (Linux shell). The operation is very normal. But what *USER* were you when you did that test?! Were you the same user PHP runs as, IE, the user Apache runs as? If not, your test is meaningless. If you were root, your test is beyond meaningless, bordering on the ridiculous :-) > But in web environment, I got this error message: > > Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to > move '/tmp/phpjsLZfC' to '/var/www/htm/test/icons.zip' in > /var/www/html/simple_upload.php on line 76. > > I think this is a problem bewteen Apache and PHP. The safe mode of PHP > is off and test directory is changed to 777. Are you 100% certain you have the directory names correct? Can the PHP user *READ* /tmp/* files? Can the PHP user *WRITE* /var/www/htm/test/* files? -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php