In the tutorial on configuring the editplus PHP program tutorial, I used the PHP command line execution program php.exe. In fact, the PHP command line execution pipeline is very powerful. if you are familiar with the specific usage methods, you can also run the program as a shell in addition to debugging the PHP program, it is widely used in PHP website development. This day, I will share with you how to run the php.exe command line and its specific parameter descriptions.
The specific location and enabling method of the PHP command line execution program
The help information of the worker, as long as you enter
You can call php.exe's usage information and command line parameter descriptions.
Differences between php.exeand php-cgi.exeand php-win.exe
The callback parameter is also partially different. To php-win.exe, I have not used it yet.
PHP command line execution program php.exe usage
You only need to input the help information of php command line execution program php.exe in php-h to list the help information of php.exe. it covers the usage and Parameter descriptions of php command line execution program php.exe. the usage is as follows:
1 2 3 4 5 6
|
Usage: php [options] [-f] [--] [Args...] Php [options]-r [--] [args...] php [options] [-B ] -R [-E ] [--] [args...] php [options] [-B ] -F [-E ] [--] [args...] php [options] -- [args...] php [options] -a |
Phpcommand line execution program php.exe parameter description
The common php.exe command line parameters are as follows:
-F : Pipeline can execute the PHP file, so it doesn't matter whether this parameter is used in a single way. it is a bit similar to displaying the PHP execution result in the browser mode. The difference is that it is run in the command line mode, it is output in the form of HTML source code. If an error occurs during execution, the error information is also listed.
Usage
1 2 3
|
C: \ php-f Or C: \ php |
-F : Corresponds to the php.exe parameter-f. this parameter table indicates that the php file is executed in the command line mode once each input line, and the $ argn and $ argi variables are reasonably used in the PHP file, this parameter can be used in combination with many things. for example, it is very interesting to execute different program codes based on the user's keyboard input.
Knowledge Point: $ Argn indicates the content of the currently entered line in the PHP command line, while $ argi indicates the row number. for a single line, you can understand it as the first input.
-I: The command line parameter calls the phpinfo () function and displays the result. The form of a token is a variable, which is much more concise and clear.
Usage
-L: The reason for this parameter of callback.Note:: This parameter cannot be used with-f.
Usage
-M: This command line parameter is mainly used to output built-in and loaded PHP and Zend modules.
Usage
-V: This command line parameter is mainly used to output the version information of PHP and Zend.
Usage
-Ini: This command line parameter is used to output the location information of the PHP configuration file.
Usage
To execute the corresponding PHP program. For more information about php.exe parameters, see here.
Note: PHP website development tutorial -leapsoul.cn All rights reserved. please indicate the original source and