How to run php files using cmd

藏色散人
Release: 2023-02-28 14:06:02
Original
4229 people have browsed it

How to run php files using cmd

How to run php files using cmd?

Run PHP in the command line mode in the CMD window, first confirm that PHP is already in the environment variable

Recommended: "PHP Tutorial"

How to run php files using cmd

php [-f] "File name"

The above command can run the PHP file in the CMD window

How to run php files using cmd

Code example, write a simple PHP file

How to run php files using cmd

CD command switches the working directory to the path where the PHP file is saved

How to run php files using cmd

php -f "File name" Run the instance

How to run php files using cmd

php "File name" Run the instance

How to run php files using cmd

The above is the detailed content of How to run php files using cmd. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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 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!