[PHP] Upload is not working ( Permission Problem), I tried a number of ways , still no success!!!!!

2004-12-01 Thread Michael Leung
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,

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

2004-12-01 Thread Gareth Williams
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:

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

2004-12-01 Thread Scott Fletcher
The directory folder where you upload the file(s) and folder(s) inito must have the ownership of Apache and the permission of 755. Then you'll have no trouble uploading file(s)/folder(s) into it since Apache would have the permission to create the file(s)/folder(s) where none exist or update them

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

2004-12-01 Thread Richard Lynch
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 =

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

2004-12-01 Thread Michael Leung
Hi Scott, Thank you for your help, but I have tried to user chown -r apache:apache upload_files. this is not working. yours, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php