Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/226.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.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文件(URL)_Php_Url_Batch File_Automation - Fatal编程技术网

从批处理文件运行PHP文件(URL)

从批处理文件运行PHP文件(URL),php,url,batch-file,automation,Php,Url,Batch File,Automation,我的计算机上有一个批处理文件,我的网站上有一个PHP文件。每当我在计算机上运行批处理文件时,我想在我的网站上运行PHP文件 我通过搜索一些东西找到了这个,但它不起作用: php http://test.com/test.php 你可以用 您需要让批处理文件运行一个可以访问web的程序 这应该起作用: start iexplore http://test.com/test.php 我对这个问题很不清楚。你说的是远程还是本地web服务器?请更具体地说明您的目标。如果要使用bat文件执行特定脚本。

我的计算机上有一个批处理文件,我的网站上有一个PHP文件。每当我在计算机上运行批处理文件时,我想在我的网站上运行PHP文件

我通过搜索一些东西找到了这个,但它不起作用:

php http://test.com/test.php
你可以用


您需要让批处理文件运行一个可以访问web的程序

这应该起作用:

start iexplore http://test.com/test.php

我对这个问题很不清楚。你说的是远程还是本地web服务器?请更具体地说明您的目标。如果要使用bat文件执行特定脚本。您只需使用以下命令调用脚本

firefox www.myscript.com/run.php
但正如我所说的,我不清楚你们想要实现什么,我可能错了

firefox www.myscript.com/run.php