Following is a very simple upload
<?php
$path = "/home/virtual/site7/fst/var/www/html";
if($file){
copy($file, "$path/");
echo "name: $file_name<P>\n";
echo "size: $file_size <P>\n";
unlink($file);
}
else{
echo <<<EOT
<html>
<META HTTP-==UIV="Pragma" CONTENT="no-cache">
<META HTTP-==UIV="Expires" CONTENT="-1">
<head>
<title>simple upl;oad</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="upload.php" enctype="multipart/form-data">
<p>File.
<input type="file" name="file">
</p>
<p>
<input type="submit" name="Submit" value="upload">
</p>
</form>
<p> </p>
</body>
</html>
EOT;
}
?>
This is the errer message
Warning: Unable to create '/home/virtual/site7/fst/var/www/html/': Is a directory in /home/virtual/site7/fst/var/www/html/upload.php on line 5
name: time.php
size: 355
It can check the file but incapable upload
Thanks to tell me Why???