I am trying to copy a file from the client machine via the browser (IE6) to
the server using v4.1.1. with register_globals off
Using <input type=file name=uploadfile size=30>
The user enters c:\Dir1\Dir2\FileName.txt
in php after posting the start page I get
$_FILES["uploadfile"] ["name"] = FileName.txt
$_FILES["uploadfile"] ["size"] =30k
when I try to execute
copy($_FILES["uploadfile"] ["name"], server_save_location)
it fails saying the file cannot be found.
If I change register_globals to be on and perform
copy($uploadfile, server_save_location) it works fine
I logged this as a bug but was told it was bogus, as the file name was
returned correctly by $_FILES
Can anyone help please
BOb
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php