note 103070 rejected from function.move-uploaded-file by danbrown

From: Date: Wed, 23 Mar 2011 21:22:35 +0000
Subject: note 103070 rejected from function.move-uploaded-file by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178143@lists.php.net to get a copy of this message
Note Submitter: amanda at newhometeam dot net ---- Ok... so I'm using this database that my boss had set up and I can't get in contact with the guy who made it, and I don't know how to do this stuff... it was working before we switched servers, but the rest of the database works fine, just not the image-uploading stuff... The error-message said the error was on line 142... so I tried to deduce what was going on... Here's what I've got... First: $upload_dir = FULLPATH . "plat/" . $platname . "/"; (FULLPATH is set up as our whole base URL and takes it to the "gallery" folder) Later: if (move_uploaded_file($_FILES[$imgtype]['tmp_name'], "$upload_dir$upload_name")) The Error I get: Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phplcxD47' to 'public_html/gallery/plat/Jefferson Heights/jeffersonHeights_homeimg.jpg' in /public_html/PMadmin/platEdit.php on line 142 What I'm thinking: Is it trying to find the directory IN the platEdit.php file? AND How do I fix it?? (I was supposed to have this uploaded at like 10am today, but it's 1:30 now and it's still not up.

« previous php.notes (#178143) next »