How to get php Info

Type in the following in a file named say test.php and save it in document root of your webserver, normally htdocsfor apache:

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>

2 Load the file in your browser. For example if you access your home page like:
http:/// 192.168.1.1/test.php

The output will be as follows

php

Post By Editor (2,827 Posts)

Website: →

Connect