Home > Backend Development > PHP Tutorial > 怎么在wamp下执行php文件

怎么在wamp下执行php文件

WBOY
Release: 2016-06-13 13:24:39
Original
923 people have browsed it

如何在wamp下执行php文件
请问在window下如何使用命令行执行php文件?我的环境是直接用的wamp,我用php xxx.php提示php不是系统命令。程序的开头,有两个参数。急用,非常感谢!
if($argc == 3) {
$lastDay = $argv[1];
$filename = $argv[2];
} else {
echo "Usage: php module.php \n";
exit;
}

------解决方案--------------------
把 php.exe所在的目录 加入到 系统的环境变量的path里

我的电脑 右键 属性,高级系统设置 高级 环境变量,找到path加入你的目录,是加入,而不是替换 一定注意

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template