note 46756 added to features.file-upload

From: Date: Fri, 22 Oct 2004 08:59:08 +0000
Subject: note 46756 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-78929@lists.php.net to get a copy of this message
I wrote : if(($file_type=="image/pjpeg") || ($file_type=="image/gif") || ($file_type=="image/bmp")||($file_type=="image/png")) { //phpinfo(); $destination="../pics/".$_FILES["picturefile"]['name']; move_uploaded_file($_FILES["picturefile"]["tmp_name"], $destination); } I upload server, when run , it send message (error): " Warning: move_uploaded_file(../pics/vinh123.jpg): failed to open stream: Permission denied in /home2/Itsolutionvn/public_html/admins/themsp.php on line 183 Warning: move_uploaded_file(): Unable to move '/tmp/phpgczDGl' to '../pics/vinh123.jpg' in /home2/Itsolutionvn/public_html/admins/themsp.php on line 183 " Hepl me...!!!!!!!!!!!!!! ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46756 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46756&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46756&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46756&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46756&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46756&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46756&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+46756&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#78929) next »