note 53945 added to function.move-uploaded-file

From: Date: Fri, 17 Jun 2005 21:44:35 +0000
Subject: note 53945 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-90603@lists.php.net to get a copy of this message
Hi, i need upload some files, i`m using this code: <?php //submit the form to the following php program $strFileName = $_FILES['userfile']['name']; $strTemName = $_FILES['userfile']['tmp_name']; $uploaddir="/aplicacion/apache2/htdocs/labremoto/upload/"; $uploadfile = $uploaddir.$strFileName; if ( move_uploaded_file($strTemName,$uploadfile) ) { echo "success!"; } else { echo "fail!"; } ?> but ever result fail, it supports uploads but don`t. i'm using: SO solaris 10, PHP 5.0.4, apache 2.0 server, Machine Sun fire V210. thanks for the help. ---- Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53945 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53945&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53945&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53945&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53945&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+53945&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53945&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53945&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90603) next »