识别这个路径? 上传了之后会有一个变量$_FILES。 FILE的名字如果是userfile 那么,上传以后会有以下变量生成:$_FILES['userfile']['name'] The original name of the file on the client machine. $_FILES['userfile']['type'] The mime type of the file, if the browser provided this information. An example would be "image/gif". $_FILES['userfile']['size'] The size, in bytes, of the uploaded file. $_FILES['userfile']['tmp_name'] The temporary filename of the file in which the uploaded file was stored on the server. 然后你进行相关文件处理就可以了。
上传了之后会有一个变量$_FILES。
FILE的名字如果是userfile
那么,上传以后会有以下变量生成:$_FILES['userfile']['name']
The original name of the file on the client machine. $_FILES['userfile']['type']
The mime type of the file, if the browser provided this information. An example would be "image/gif". $_FILES['userfile']['size']
The size, in bytes, of the uploaded file. $_FILES['userfile']['tmp_name']
The temporary filename of the file in which the uploaded file was stored on the server. 然后你进行相关文件处理就可以了。
上传文件会放置在服务器端的设定的临时上传文件保存的目录。
不应该会要这个路径。
tntxhy(落日使者)的方法应该是对的。