PHP command line parameters detailed and application

Source: Internet
Author: User
Tags command line ini odbc php and
Command Line | Details you know, PHP is a kind of PHP is a server based on the creation of Dynamic Web site scripting language, you can use PHP and HTML to build Web site home. When the user opens the PHP page, the server executes the PHP commands and sends the results to the user's browser, similar to the ASP and coildfusion,php that can run on Windows and multiple versions of UNIX. In addition to being able to manipulate your pages, PHP can also send HTTP headers. You can set up cookies, manage digital signatures and redirect users, and it provides excellent connectivity to other databases (and ODBC), and integrates various external libraries to do anything to parse XML in PDF documents. Do you also know that you can do something else with the power of PHP?

When running as a standalone CGI, you need a PHP executable that has a number of command-line arguments, some for fun purposes, and the following are all the PHP command-line parameters, where [] means that the,<> table is optional.

Usage php [-Q] [-h] [-S] [-v] [-i] [-f] | {[args ...]}

-Q Quiet mode. HTTP headers are not exported.

-S converts PHP program files into color-formatted HTML (for example, reserved words are green, functions and variables are blue, comments are yellow and strings are red, and so on).

-F reads and interprets the specified documents.

-C Read the php.ini file in

-A interactive operation

-D Foo[=bar] Defines the value of input foo in INI as bar

-e output extra information for debugging and profiling

-Z transfer into Zend extension file

-I PHP related information

-H help itself.

Ha, do you know how to use it?

That's right

1. Use the Php-q file name. php to use the PHP program as a shell program,

2. Use-S to HTML your PHP program. Is this a hassle?

3. Using PHP's ODBC capabilities, you can manipulate the database in a shell command.

There are many more, it depends on your creativity. Oh, don't forget to give me a cry.



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.