Re: upload permission denied!

From: Date: Tue, 29 Jan 2002 03:31:19 +0000
Subject: Re: upload permission denied!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-82511@lists.php.net to get a copy of this message
On Tuesday 29 January 2002 11:10, sundogcurt wrote: > Like so? > > error message : > Warning: Unable to create 'sdf.jpg': Permission denied in > /home/gruesome/public_html/valeriemacwilliam/includes/content/addpic.php > on line 21 > > code : > <? > if($myfile){ > if(copy(stripslashes($myfile), $newname . '.jpg')){ > print "<p>done</p>"; > }else{ > print "<p>not done</p>"; > } > } [snip] You need to change to the permissions of the directory in which you want to copy the file to, so that it's writable by the 'user' running the webserver. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Nobody can be exactly like me. Sometimes even I have trouble doing it. -- Tallulah Bankhead */

« previous php.general (#82511) next »