question .. this should upload a file into a temp dir.
it prints my temp dir as being c:\windows\temp\
and the file name php34.tmp
full path: C:\WINDOWS\TEMP\php34.tmp
now my question, is why isn't that temp file really put there, even after i run is_uploaded_file on that path and file name and it returns true?!? any help appreciated.. the code below is all i'm using in a php file. thx
<FORM METHOD="POST" ENCTYPE="multipart/form-data">
<INPUT TYPE="FILE" NAME="hello">
<INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE" VALUE="10240">
<INPUT TYPE="SUBMIT">
</FORM>
<?
print $hello . "<br>";
print $hello_size . "<br>";
print $hello_type . "<br>";
print $hello_name . "<br>";
print $hello_tmp_name . "<br>";
if (!is_uploaded_file($hello . $hello_tmp_name)) {
$error = "You did not upload a file!";
print $error;
// unlink($HTTP_POST_FILES['hello']['hello_name']);
} else {
print ("file uploaded successfully to") . " " . $hello . $hello_tmp_name;
}
?>