The phpinfo function


phpinfo is a PHP service function that outputs information about the version, configuration and extensions of PHP; about the Apache server and its settings.
 
To call this function, use the construct:

<?php
phpinfo();
?>

How do I locate the php.ini file?

In phpinfo is very convenient because you can look up directives, extensions and other settings alphabetically there. Very often, it is necessary to find the location of the configuration file php.ini; because often there may be several configuration files on the server, but only one is always used.
With phpinfo, it is easy to see which config file is active, see Loaded Configuration File

Hint:
Note the two columns in phpini: Local Value and Master Value. The first column contains local directives that are set in .htaccess; the second column contains global, server configuration settings.


This entry was posted in Apache (en), PHP (en). Bookmark the permalink.

Leave a Reply

🇬🇧 Attention! Comments with URLs/email are not allowed.
🇷🇺 Комментарии со ссылками/email удаляются автоматически.