hi
i'm tring to upload a file, but the explorer
gives all kinds of error, can u please correct my script?.
this is the form:
<body>
<form action="get_file.php" method="post" enctype="multipart/form-data">
<input type="file" name="file_upload">
<input type="Hidden" name="MAX_FILE_SIZE" value="50000000">
<br>
<input type="submit">
</form>
</body>
this is the copy() file:
<?
$file_dir="http://localhost";
if($file_upload=='none')
print"u cant upload none";
else
{
if(isset($file_upload))
{
print"path: $file_upload<br>\n";
print"name: $file_upload_name<br>\n";
print"size: $file_upload_size<br>\n";
print "type: $file_upload_type<br>\n";
copy($file_upload,"$file_dir,$file_upload_name") or die ("copy faild");
}
}
?>
can u give me a script that is working
thanks