Controversial is well known, PHP has a very important role in the Web server field, but it is not only in the web domain, but in the web domain performance is more excellent!
It basically has three kinds of uses:
- Writing Web server-side scripts
- Application graphical interface (similar to the Windows-brought calculator program)
- Command-line scripting
- PHP as a language, itself can make a pure green version of the folder, that is, this folder is called "PHP language Package"
- Where the folder has a file: Php.exe, you can use it to execute PHP code
- First we create a PHP file and then edit the simple statement!
- On the cmd command line, use Php.exe to execute the file you want to execute, php.exe-f "file path", enter as follows:
We see the output of "Hello Baichaohua"!
- Of course, we have another way is to run the PHP code directly in the command line, php.exe-r "code", directly look at the graph bar:
This is a simple demonstration of the next PHP command line script, hehe Welcome to Exchange!
PHP command line script run PHP file simple demo