phpinfo(): Read the PHP configuration?

<?Php
echo phpinfo();
?>
phpinfo() is a very powerful tool to know all details about PHP configuration, server environment and server settings.
phpinfo()
It tells about the PHP version running in the server. The settings can be changed in php.ini file . In a shared hosting environment you may not get access to change your php.ini file settings. Contact your hosting provider for any changes you require or to enable features.

Some of the settings inside php.ini can be changed by using ini_set() function .

Store the above code in any php file and open in your server.
Name Description
MySQLhow to check mysql support in php by using phpinfo
MSSQLhow to check MSSQL support in php by using phpinfo
GDChecking GD support used for image handling
Jsonhow to check Json support for sending data by phpinfo

First PHP page for Hello world output and checking installation with phpinfo() and uses of comments


Introduction to PHP Collect php.ini settings by using ini_get() Guide to installation and How to write our first PHP Script

Subhendu Mohapatra — author at plus2net
Subhendu Mohapatra

Author

🎥 Join me live on YouTube

Passionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.



Subscribe to our YouTube Channel here



plus2net.com







vikas kumar

21-01-2012

Yahoooooooo......!!!!!! Thanks for telling phpinfo();




PHP video Tutorials
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2025   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer