note 53945 deleted from function.move-uploaded-file by betz
| From: | betz@php.net | Date: | Fri, 17 Jun 2005 21:56:59 +0000 |
| Subject: | note 53945 deleted from function.move-uploaded-file by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-90605@lists.php.net to get a copy of this message | ||
Note Submitter: gedarufi at gmail dot com
----
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.