Home  >  Article  >  Backend Development  >  How to run php in the console

How to run php in the console

藏色散人
藏色散人Original
2019-11-14 11:27:053919browse

How to run php in the console

How to run php in the console?

First enter your php installation directory

Then assume it is installed in D:\server\php

Then enter in the cmd command line:

D:
cd D:\server\php
php.exe -f E:\czjx\a.php(假设php文件放在 E:\czjx)

How to run php in the console

Recommended: "PHP Tutorial"

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

Statement:
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