{"id":9397,"date":"2021-01-09T02:58:29","date_gmt":"2021-01-09T07:58:29","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=9397"},"modified":"2021-12-04T06:13:37","modified_gmt":"2021-12-04T06:13:37","slug":"create-phpinfo-file-check-php-information","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/create-phpinfo-file-check-php-information\/","title":{"rendered":"How to Create phpinfo File and Check PHP Configuration"},"content":{"rendered":"\n

This guide will show you how to create a phpinfo file and use it to check the PHP<\/a> configuration information on your web server.<\/p>\n\n\n\n

phpinfo()<\/em><\/strong> is a PHP function that outputs information about PHP’s configuration when invoked.<\/p>\n\n\n\n

The function outputs a large amount of information about the current state of PHP on the system. This includes information about PHP compilation options and extensions, the PHP version, server information and environment (if compiled as a module), the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers, and the PHP License.<\/p>\n\n\n\n

The function takes zero or 1 parameter. This parameter happens to be a flag that you can use to specify what you want to print out. It returns true on success, false on failure.<\/p>\n\n\n\n

Syntax:<\/p>\n\n\n\n

phpinfo ( int $flags = INFO_ALL ) : bool<\/code><\/pre>\n\n\n\n

Parameter list:<\/p>\n\n\n\n