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
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to