Sometimes when you develop your web application and in the middle of your activity you find a problem with your codes, and you need to now detail about your PHP configuration for example, whether MySQL module is enabled, XML parser enable, etc. You can check all that information by using a single PHP function.
You can use phpinfo() function, to enumerate all your PHP configuration have. You simply only need to create a file, let's give it a name 'phpinfo.php' and the content of the file is this one single line PHP code:
<?php phpinfo(); ?>
Now open the browser and locate to that file, for example if you are developing your app on your local computer, you can go to http://localhost/phpinfo.php , the page will be similar as this picture below.
![]() |
| phpinfo() PHP-7 configurations information |
Join the discussion
We welcome thoughtful feedback and questions.
Sign in to comment
Use your account to join the conversation, or create one in seconds.
Log in to your account
Create your reader account
Commenting as