[SOLVED]Cannot upload an image

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fastfingertips
Forum Contributor
Posts: 242
Joined: Sun Dec 28, 2003 1:40 am
Contact:

[SOLVED]Cannot upload an image

Post 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?
Last edited by fastfingertips on Wed Jul 28, 2004 5:22 am, edited 1 time in total.
fastfingertips
Forum Contributor
Posts: 242
Joined: Sun Dec 28, 2003 1:40 am
Contact:

Post 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
fastfingertips
Forum Contributor
Posts: 242
Joined: Sun Dec 28, 2003 1:40 am
Contact:

Post by fastfingertips »

Done thank you (now is wroking ok)
Post Reply