Home > Article > Backend Development > 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)
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!