How do you go about finding out your version of PHP, or other server applications running on your server? Here's how…
If you need to check which version of PHP your site is running on, or what your session.save_path is, whether register_globals are on or not, or any other server information about your site, create a file with a text editor, calling it info.php (you can call it anything you like as long as you create the file with the .php extension).
In the file, put this one line of code:
<?php phpinfo(); ?>
Make sure you use the "any file" save option so it saves as a .php file (and not a .txt file).
Upload the file to your site, then call it in your web browser, eg. http://yourdomain.com/info.php
The information you need will show in your browser.
Once you have copied the information, delete the php info file from your server space so unauthorised people can't get to see your site/server details.







