An easy way of doing this is to create a text file named phpinfo.php with the php_info() function. Within a text file, place the following text:
Save (or upload) the phpinfo.php file to your webspace in the folder that contains your site files and access the page through a browser.