Home  >  Article  >  Backend Development  >  在CMD下如何运行PHP程序

在CMD下如何运行PHP程序

WBOY
WBOYOriginal
2016-06-23 14:27:59779browse

PATH弄好了,我现在有文件hello.php (在根目录) ,运行命令php hello.php  

显示   Could not open input file:hello.php 

网上没找到解决方案,谁会呢?难道我要移步linux 吗


回复讨论(解决方案)

php c:\hello.php
不再当前目录就写绝对路径

php c:\hello.php
不再当前目录就写绝对路径 果然如此,十分感谢!!!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn