在一些关于PHP上传的示例中,我发现好像做上传这个动作的并不是PHP在做而是页面的活,PHP只是把上传上来的文件换了地方,不知道我的这种看法正确不正确,请高手路过指教一下。谢谢!个人认为以下这些代码已经把文件上传了。
 <html>
 <head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<body>
<form name="upload" method="post" id="upload" ENCTYPE="multipart/form-data" action="./a.php">
文件上传<input type="file" id="userfile" name="userfile">
<input type="submit" name="upload" value="上传">
</form>
</body>
</html>
<?php