Page 1 of 1

move_uploaded_file [SOLVED]

Posted: Wed Mar 26, 2008 10:00 am
by aceconcepts
Hi,

I have written an upload program so many times but i am stuck with this one.

I keep getting the following error when I try to upload a file:

Warning: move_uploaded_file(/uploads/client_logos/back.gif) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/site/public_html/dev/registration/admin/inc/event_newValidation.php on line 787

I know for a fact that the folders exist on the server and I have changed dir permissions too.

What might it be?

Re: move_uploaded_file

Posted: Wed Mar 26, 2008 10:06 am
by samb0057
It must be that the directory /home/site/public_html/dev/registration/admin/inc/ does not exist.
Note that if /home/site/public_html/dev/registration/admin/ exists, but does not have the inc/ directory, this will fail.

Re: move_uploaded_file

Posted: Wed Mar 26, 2008 10:17 am
by aceconcepts
Thanks for the reply.

I think I've been staring at the screen for too long. It's rather embarasing really...I was using the host path and not the root path DOH

Thanks anyway.