We will give you a detailed explanation in this article.
When a user opens the php page, the server executes the PHP Command Line parameters and sends the execution results to the user's browser, which is similar to ASP and CoildFusion, PHP can run on WINDOWS and multiple versions of UNIX. In addition to being able to operate on your page, PHP can also send HTTP headers.
You can set cookies to manage digital signatures and redirect users, and it provides excellent connectivity to other databases (as well as ODBC ), integrate various external libraries to parse XML in PDF documents. Do you still know that you can use the powerful functions of php to do something else? When running in an independent cgi Mode, a php executable program is required. It has many PHP Command Line parameters, some of which can be used for interesting purposes. Below are all PHP Command Line parameters, [] indicates that the table is dispensable. <> the table is required. Use php [-q] [-h] [-s] [-v] [-I] [-f] | {[args...]}-q quiet mode. No HTTP header is output.
-S converts php program files to HTML in color format (for example, the reserved words are green, the functions and variables are blue, the comments are yellow, and the strings are red.
-F reads and interprets the specified file.
-C reads the php. ini file in
-A Interactive Operation
-D foo [= bar] defines the input item foo in ini as bar.
-E outputs additional information for debugging and Performance Analysis
-Z: Call Zend extension file
-I php-related information
-H help itself.
1. Use php-q file name. php to use the php program as a shell program,
2. Use-s to html Your php program. Isn't that easy?
3. Use the odbc function of PHP command line parameters to operate databases in shell commands.