> 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...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to