Page 1 of 1

[SOLVED]Cannot upload an image

Posted: Wed Jul 28, 2004 3:57 am
by fastfingertips
When i'm trying to upload an image, gives me this error:

Warning: copy(images/10178674.jpg) [function.copy]: failed to create stream: Permission denied in /var/www/htdocs/work/temporar/imageclass.php on line 61

How can i fix this?

Posted: Wed Jul 28, 2004 4:10 am
by fastfingertips
I'v changed the copy function with the move one and now i'm getting:

Warning: move_uploaded_file(var/www/htdocs/work/temporar/images/10178674.jpg) [function.move-uploaded-file]: failed to create stream: No such file or directory in /var/www/htdocs/work/temporar/imageclass.php on line 60

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpeNbesq' to 'var/www/htdocs/work/temporar/images/10178674.jpg' in /var/www/htdocs/work/temporar/imageclass.php on line 60

Posted: Wed Jul 28, 2004 4:36 am
by fastfingertips
Done thank you (now is wroking ok)