As you know, php is a script language for creating dynamic websites based on servers. you can use PHP and HTML to create a website homepage. When a user opens the php page, the server executes the PHP command and sends the fulfillment result to the user's browser.
As you know, php is a script language for creating dynamic websites based on servers. you can use PHP and HTML to create a website homepage. When a user opens the php page, the server executes the PHP command and sends the fulfillment result 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 hold your page, PHP can also send HTTP headers. You can set cookies, manage digital signatures and redirect users, and provide 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 power of php to do something else?
When running in an independent cgi method, a php executable program is required. it has many command line parameters, some of which can be used for fun. below are all the php command line parameters, [] is dispensable. <> tables are mandatory.
Usage: php [-q] [-h] [-s] [-v] [-I] [-f] | {[args...]}
-Q Quiet mode. No HTTP header is output.
-S converts php program files to HTML with a color pattern (for example, the reserved words are green, the functions and variables are blue, the comments are yellow, and the strings are red.
-F: read and describe the specified file.
-C: Read the php. ini file in.
-A Interactive operation
-D foo [= bar] defines the value of foo in ini as bar.
-E outputs additional information for debugging and performance analysis
-Z: adjust Zend to expand the file
-I php related information
-H help itself.
Haha, do you know how to use it?
By the way,
1. use the php-q file name. php method 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 to control the database in shell commands.
There are many other ideas. Oh, don't forget to let me know.