Here i a safe way to view your phpinfo.
Just create a file in your site root (something that you can call from the browser) such as http://www.example.com/whatever.php and yes it has to have a .php extension on it.
Remember to call it something that no one could ever guess because it is a security issue if the public can view your php information. And trust me there are people that troll domains looking for weaknesses such as when people call their files something generic like checkphp.php and the like.
I used to have one called check_mysodacan_forflys_php.php :)
Anyway you get the point. Now inside that file just put this code
<?php
phpinfo();
and save the file... now call the file with your broswer and you will see the phpinfo displayed on your screen.
do what you need to do as far as gathering the information that you need and then when you are done just comment out the phpinfo part of the file like so
// phpinfo();
and save the file... this will prevent anyone that does access the file from seeing the phpinfo. When you need the file again you can just un-comment the code and rerun the file from your browser.
Or you can just delete the file and create a new one when you need one. But don't put it off because you will forget. Comment out the code or delete the file right now, or a month from now you will find out that you forgot to do so.
Hope this helps...