View Discussion Show Improve Article Save Article View Discussion Improve Article Save Article PHP provides us with a built-in function phpinfo() which gives us the details about the PHP version and PHP configuration of PHP installed in our
system. To know about the Configurations and PHP version which is installed in your computer, a simple PHP script can be used. The script consists of a PHP function called “phpinfo()” which outputs information about PHP’s configuration. The phpinfo() function is also useful in the debugging process.
Syntax: bool phpinfo ([ int $what = INFO_ALL ] ) Parameters:
Return Type: The phpinfo() function return a boolean value. That
is, it returns true on success and false on failure. phpOutput: Note: phpinfo() outputs plain text instead of HTML when using the CLI mode. (PHP 4, PHP 5) phpinfo — Outputs information about PHP's configuration Descriptionbool phpinfo ([ int Because every system is setup differently, phpinfo() is commonly used to check configuration settings and for available predefined variables on a given system. phpinfo() is also a valuable debugging tool as it contains all EGPCS (Environment, GET, POST, Cookie, Server) data. Parameterswhat The output may be customized by passing one or more of the following constants bitwise values summed together in the optional
Return Values Returns Changelog
ExamplesExample #1 phpinfo() Example
Notes
See Also
How do I use Phpinfo in Wordpress?Go to your website's admin panel. Select Plugins > Add New. search for phpinfo() WP by Imran Hossain Sagor. Click Install Now button. Then simply click Active.
Where can I find Phpinfo ()?Checking PHP Information by Creating a phpinfo File. Navigate to File Manager under the Files section in your hPanel.. Once you're in public_html directory, click the New File button.. Name your file phpinfo. ... . Scroll down and locate the new phpinfo file within the directory, then right-click to Edit.. What is INI file in PHP?The php. ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits. php. ini file is the configuration file.
How do I write Phpinfo?To add a phpinfo() page to your site, follow the instructions below:. Log in to the Account Control Center (ACC). Navigate to your website files. ... . Create a new file.. Name the file phpinfo.php.. Enter the following code in the text field: ... . Click Create File.. Now go visit your phpinfo.php file.. |