PHP.ini Configuration Detail Options

Source: Internet
Author: User

PHP.ini or Php3.ini is the configuration file that PHP reads when it starts. The file is stored in a/usr/local/lib/path. In the PHP 3.x version of the configuration file for Php3.ini, and in the PHP 4.x version to php.ini. If PHP is installed as a server module, it will read when the Web server starts execution and then no longer read, so if you change the configuration, restart the Web server. If you are using a standalone PHP CGI, read it every time.

To see the current system configuration, you can see it with phpinfo (). The following options are configured

Php_value Name Value

Configure variable names and values. This option will not be available until you have a 4.x version of PHP.

Php_flag name On|off

Configure flags Boolean variable options. This option will not be available until you have a 4.x version of PHP.

Php_admin_value Name Value

Configure the Apache configuration file variable. The original configuration of the. htaccess is changed to this option configuration. This option will not be available until you have a 4.x version of PHP.

Php_admin_flag name On|off

Configure Boolean variables as flags. This option will not be available until you have a 4.x version of PHP.

Asp_tags Boolean

Configure whether the PHP program resolves the tag (tag) <%%> with ASP Script syntax. This option is not available after PHP 3.0.4. More details can be referenced in the > Embedding method part.

Auto_append_file string

Configure this option to have the specified file attached automatically after the original PHP program. If the exit () function is useful in a PHP program, the specified file is not executed. The parameter string is the specified automatically executed file.

Auto_prepend_file string

Configure this option to allow the specified file to be executed automatically before the original PHP program. The parameter string is the specified automatically executed file.

Cgi_ext string

This option configures the name of the CGI program extension.

Display_errors Boolean

This option configures whether you want to display error messages that are executed on the user's browser.

Doc_root string

Configure the server's files and the root directory where the PHP files are placed.

Engine Boolean

This option requires using the Apache module to use PHP. You can configure whether you want to use the PHP engine. Adding Php3_engine On/off in httpd.conf can also configure whether a directory or a virtual Web site will use a PHP parser.

Error_log string

This option is used to configure error logging files. The parameter string is the file name on the UNIX system. Windows NT will record records in the log of the Event Viewer. Windows 95/98 does not support system logging.

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.