Home > php教程 > php手册 > body text

cmd下运行php脚本

WBOY
Release: 2016-06-13 12:25:34
Original
920 people have browsed it

其实蛮简单的
我的php安装目录在 d:\php
那么 运行
cmd
>d:
>cd php
要让工作目录指向php.exe的安装文件夹
然后就可以用php指令了
比如 在该文件夹下面新建一个test.php

>php test.php
看运行成功了吧。

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template