note 103070 added to function.move-uploaded-file

From: Date: Wed, 23 Mar 2011 20:36:42 +0000
Subject: note 103070 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-178142@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 173.64.157.122 ---- Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php Edit -- https://master.php.net/note/edit/103070 Del: integrated -- https://master.php.net/note/delete/103070/integrated Del: useless -- https://master.php.net/note/delete/103070/useless Del: bad code -- https://master.php.net/note/delete/103070/bad+code Del: spam -- https://master.php.net/note/delete/103070/spam Del: non-english -- https://master.php.net/note/delete/103070/non-english Del: in docs -- https://master.php.net/note/delete/103070/in+docs Del: other reasons-- https://master.php.net/note/delete/103070 Reject -- https://master.php.net/note/reject/103070 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178142) next »