Home > Backend Development > PHP Tutorial > 如何在windows下运行php文件

如何在windows下运行php文件

WBOY
Release: 2016-06-20 13:04:34
Original
3500 people have browsed it

如何在windows下运行php文件

首先用快捷方式ctrl+r 打开cmd命令行

怎么样在命令行下运行php文件呢?
首先用快捷方式ctrl+r 打开cmd命令行
1、你的php.exe文件的路径,比如d:\php5.3\
2、打开计算机右键 > 属性 > 高级系统设置 > 高级 > 环境变量
3、在系统变量中找到Path看看有没有你的php路径,如果没有,则在Path中加入你的php路径,如:d:\php5.3\,保存即可
4、在cmd命令行下进入到你的站点目录,直接输入文件名即可,如:F:\www\socket>php.exe s.php


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