Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMD配置PHP命令 #8

Open
Wscats opened this issue Apr 1, 2017 · 0 comments
Open

CMD配置PHP命令 #8

Wscats opened this issue Apr 1, 2017 · 0 comments

Comments

@Wscats
Copy link
Owner

Wscats commented Apr 1, 2017

1.寻找PHP文件夹路径

因为我的PHP环境是用集成包XAMPP安装的
所以我先找到我的xampp的安装目录
最重要是找到PHP的目录,里面最重要就是找到php.ini,php.cmd和ext文件夹

D:\xampp\php

image

2.添加环境变量

打开我的电脑->属性->高级->环境变量->系统变量->Path->编辑

image

添加下面两个路径

D:\xampp\php\ext;D:\xampp\php

3.执行PHP脚本

定位到对应的文件夹,执行php XXX.php来执行php脚本文件
image

@Wscats Wscats changed the title PHP环境配置在CMD命令上运行 CMD配置PHP命令 Apr 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant