简体   繁体   English

文件上传但未在php中使用表单标签

[英]File upload but not using form tags in php

I want the php script to use the file location for eg c://documents/file.doc and read the file then. 我希望PHP脚本使用文件位置,例如c://documents/file.doc,然后读取文件。 Here I do not want to use a form tags to upload the file. 在这里,我不想使用表单标签来上传文件。

I wonder if this is possible. 我想知道这是否可能。

I will be providing the file path on the hard disk to the php script. 我将提供硬盘上php脚本的文件路径。 Using the script can it read the file for further processing. 使用脚本可以读取文件以进行进一步处理。

Is this possible? 这可能吗?

不,这显然是不可能的,否则您可以将所需的任何内容从用户磁盘上载到服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM