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>"; } } ?> <h2 align="center">Add Picture</h2> <form action="<?print $PHP_SELF?>" method="post" enctype="multipart/form-data" name="addpicform"> <input type="hidden" name="action" value="addpic"> <input type="hidden" name="status" value="0"> <input type="hidden" name="sorder" value="0"> new file name <input type="text" name="newname"><br /> <input type="hidden" name="MAX_FILE_SIZE" value="1000000"> <input name="myfile" type="file"><br /> <input type="submit" value="Send file"> </form> [EMAIL PROTECTED] wrote: > >At least give us the error you get. > >And it sounds like I'd need to see your code too. > >bvr. > >On Mon, 28 Jan 2002 15:23:50 -0800, sundogcurt wrote: > >>I'm not sure if this is a problem I can overcome with PHP or if I have >>to go directly to the Linux box to fix (I hope not). >> >>I have moved my development from a win32/apache/mysql box to a >>Mandrake/apache/mysqly box and have only one problem (that I know of) to >>overcome. >> >>When I try to upload an image (with scripts that worked just fine on the >>win32 system) I get a permission denied error. The dir that I am trying >>to write to has permissions for everybody to do anything! (777 or 0777 >>how ever you want to format it). The scripts are located in my user dir >>under public_html etc etc. I can create directories in there but I can't >>seem to convince the darn thing to copy an image. It seems to upload (no >>errors) but that is where it ends. I don't know what other information >>you need from me or if this is even the proper list to be submitting to. >> >>Again I say I am able to create directories but not copy an image. ??? >> >>Thanks and I'm sorry that my question has anything to do with uploading >>stuff eheheh >> > > >