This is from the manual --
<?php
function is_uploaded_file($filename) {
if (!$tmp_file = get_cfg_var('upload_tmp_dir')) {
$tmp_file = dirname(tempnam('', ''));
}
$tmp_file .= '/' . basename($filename);
}
if (is_uploaded_file($userfile)) {
copy($userfile, "file.test");
} else {
echo "<br>Possible file upload attack: filename
'$userfile_name'.";
}
?>
This uploads the file into the correct temp directory, it recognizes the
filename, etc., but it won't copy it. I only can achieve the error
message. I need to use PHP3 for this, I'm obviously missing something.
Thanks,
Robert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]