RE: [PHP] Upload wont work
| From: | John Holmes | Date: | Thu, 23 May 2002 11:00:48 +0000 |
| Subject: | RE: [PHP] Upload wont work | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98892@lists.php.net to get a copy of this message | ||
> function upload ()
> {
> if ( is_uploaded_file ($_FILES['userfile']['name'] ) )
> {
> copy($_FILES['userfile']['name'], "/demos/");
> }
>
> else
> {
> echo "File not uploaded: " . $_FILES['userfile']['name'];
> }
> }
is_uploaded_file($_FILES['userfile']))
Read the manual.
www.php.net/is_uploaded_file
$_FILES['userfile']['name'] is just the name of the file on the clients
computer.
---John Holmes...