The phpinfo()
function in PHP outputs detailed information about the current PHP environment and configuration settings. It is a valuable tool for developers and administrators to diagnose PHP-related issues and verify server configurations.
To use phpinfo()
:
phpinfo()
function call.phpinfo()
displays the following types of information:
php.ini
)Exercise caution when using phpinfo()
in a production environment:
phpinfo()
output to trusted users only.phpinfo()
on production servers after debugging or diagnostics.Here are some useful folders and ports on web servers
xampp, apache, tornado etc...