Run php script under cmd_PHP tutorial

WBOY
Release: 2016-07-21 15:48:36
Original
846 people have browsed it

In fact, it is quite simple
My php installation directory is in d:php
Then run
cmd
>d:
>cd php
to make the working directory point to php.exe The installation folder
and then you can use the php command
For example, create a new test.php under the folder

>php test .php
See if it runs successfully.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/319744.htmlTechArticleIn fact, it is quite simple. My php installation directory is in d:php. Then run cmd d: cd php to make the working directory Point to the installation folder of php.exe and then use php commands. For example, in this folder...
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!