Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在php中使用wget发布文件_Php_Wget - Fatal编程技术网

在php中使用wget发布文件

在php中使用wget发布文件,php,wget,Php,Wget,我如何才能在此行中共享文件 wget --post-file=/home/bin/tmp/results.txt http://192.120.203.168:2224/test.php “共享文件”是什么意思?你明白那一行代码的作用吗?实际上我只懂那一行的一点。自从我在帖子上看到它,我就试过了。然后我就搞不清楚如何才能得到它发布的文件。如果你运行那行代码,这意味着文件/home/bin/tmp/results.txt在同一台服务器上,你可以访问它。啊,这意味着它没有发布文件或将文件传输到UR

我如何才能在此行中共享文件

wget --post-file=/home/bin/tmp/results.txt http://192.120.203.168:2224/test.php

“共享文件”是什么意思?你明白那一行代码的作用吗?实际上我只懂那一行的一点。自从我在帖子上看到它,我就试过了。然后我就搞不清楚如何才能得到它发布的文件。如果你运行那行代码,这意味着文件
/home/bin/tmp/results.txt
在同一台服务器上,你可以访问它。啊,这意味着它没有发布文件或将文件传输到URL()?该命令确实发送(通过POST请求)将本地文件复制到该地址。阅读你从哪里得到这个命令的?