PHP command line parameter explanation and _ PHP Tutorial

Source: Internet
Author: User
PHP command line parameters and applications. When a user opens the php page, the server executes the PHP command and sends the execution result to the user's browser. This is similar to ASP and CoildFusion. PHP can run on WINDOWS and multiple versions.

When a user opens the php page, the server executes the PHP command and sends the execution 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 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 command line parameters, some of which can be used for interesting purposes. below are all the 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 to operate databases in shell commands.

...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.