关于上传文件的菜鸟问题(请大虾指教)
<html>
<head>
<title>hello</title>
</head>
<body>
<table>
<center>
<br>
<h1>
请选择要上传的文件:
</h1>
<br>
<form enctype="multipart/form-data" name="SubmitForm" Action="upload.php" Method="post">
<input type="hidden" name="max_file_size" value="1000000">
<tr>
<td><input name="uploadfile" type="file" size="30"></td>
</tr>
<tr>
<td><input name="submit" type="submit" value="发送"></td>
<td><input name="reset" type="reset" value="重置"></td>
</tr>
</FORM>
</center>
</table>
</body>
</html>
upload.php
<?
if($UploadFile!="none")
{
copy($UploadFile,"$UploadFile_name");
unlink($UploadFile);
}
else
{
echo "你没有上传任何文件";
}
?>
这是书上的例子
可是调试不通过
错误是这样的
Warning: Unable to open '' for reading: Permission denied in c:\apache\htdocs\upload\upload.php on line 4
Warning: unlink() failed (Permission denied) in c:\apache\htdocs\upload\upload.php on line 5
希望大虾指教