echo return TMP file name
Posted: Fri Mar 19, 2004 4:01 pm
Would be nice if somebody has the answers
what am i missing ( it for the process it wont really mather if i get the real filename or just the tmp. the file is uploaded. but it would look nice to get the real name
Code: Select all
$ext = strrchr($file_name,'.');
if (($limit_ext == "yes") && (!in_array($ext,$extensions))) {
$endresult = "<font size="2">File is wrong type</font>";
}else{
@copy($file, "$absolute_path/$file_name") or $endresult = "<font size="2">Couldn't Copy File To Server</font>";
}
}
}
}
$uploaded = $file_name; // also tried $file ?>
//-java-
<script language="JavaScript">
file = ("<?php echo $file ?>");
alert("file uploaded " + file);
</script>
/*
THIS WILL ECHO file uploaded WINNTTEMPphp6.temp
*/