Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/248.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 无法打开cmd中的输入文件_Php - Fatal编程技术网

Php 无法打开cmd中的输入文件

Php 无法打开cmd中的输入文件,php,Php,我在CMD中运行此代码 D:\AppServ\php5\php.exe D:\AppServ\www\test\items.php?id=1 但我犯了这个错误 无法打开输入文件:D:\AppServ\www\test\items.php?id=1 如果我删除?id=1它的工作,但我需要所有链接部分 如何在comand prompt中修复和运行 谢谢。?在cli模式下不工作 对于Cli,参数的传递方式与另一个shell脚本相同: D:\AppServ\php5\php.exe D:\AppSer

我在CMD中运行此代码

D:\AppServ\php5\php.exe D:\AppServ\www\test\items.php?id=1
但我犯了这个错误

无法打开输入文件:D:\AppServ\www\test\items.php?id=1

如果我删除
?id=1
它的工作,但我需要所有链接部分 如何在comand prompt中修复和运行


谢谢。

在cli模式下不工作

对于Cli,参数的传递方式与另一个shell脚本相同:

D:\AppServ\php5\php.exe D:\AppServ\www\test\items.php id=1

脚本之后的任何内容都将作为参数发送到php。

用于通过Web服务器的URL中的参数。它们在CLI中没有特殊意义。无法在命令行中使用???可能重复