Ezilon.com - Target Your Audience, be Seen in Your Region

PHP File upload problem

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

He has: 12 posts

Joined: Sep 2005

I have a trouble uploading a file in PHP via a form

I get error: "failed to open stream: No such file or directory"
for function move_uploaded_file

I checked paths parameteres to this function and are ok.

what other problem might there be?

Busy's picture
Modrater

He has: 6,149 posts

Joined: May 2001

could be a number of things,
the folder is not there
folder is spelt wrong
the folder has not been chmod'd to allow writing to
the uploaded file was corrupt
you moved the tmp or real image to soon
...

Can you post the code for your upload script, not all of it, just the move_uploaded_file() bit

<?bhb if(broken){ echo("It wasn't me Smiling "); } ?>
Learn HTML the ez way - EzHTML.net

Some people are like slinkies, they dont really serve any purpose but they still bring a smile to your face when you push them down the stairs ...