Re: Upload is not working ( Permission Problem), I tried a number of ways , still no success!!!!!

From: Date: Wed, 01 Dec 2004 08:19:46 +0000
Subject: Re: Upload is not working ( Permission Problem), I tried a number of ways , still no success!!!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203212@lists.php.net to get a copy of this message
You could try chown user:group, where user and group are those apache runs in. Is this script running on your own machine, or on a web server hosted somewhere? On 1 Dec 2004, at 09:03, Michael Leung wrote:
Hi all, I am still solving my upload script problems. Here is the error Msg: "Warning: copy(/var/www/html/upload_files/Default.bk1) [function.copy]: failed to open stream: Permission denied in /var/www/html/simple_upload.php on line 77" My Upload Code: $result = move_uploaded_file($temp_name, $file_path); I started to think this is not only PHP , may be Apache problem too. Anyone has some ideas? I have tried to set my upload directory into 777. Even I tried to use sudo , giving apache as root permission and running system command copy the file from the tmp directory to upload_files. but still no success!! I have done some research on web, no one can suggest a solution rather than chmod 777( I did that!) yours, michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#203212) next »