The phpinfo command gives information on your php environment and is used to check the configuration of a running environment.
php -i gives you phpinfo information at the command line.
php web page
Create a page phpinfo.php with the following code and get it from your webserver
<?php phpinfo(); ?>