1and1 Help Centre Categories

print article

Determine which PHP Version is used

Follow the instructions below to determine which version of PHP is being implemented with your package.

One way to find out what version of PHP is currently being used by one of your sites is to create a PHP page with the phpversion(); function. Save this file as phpVersion.php to the same folder where all of your site files are located. Then access this page in a browser using your domain and adding /phpVersion.php to the end of it (such as http://domain.com/phpVersion.php) to view the output.

<?php
echo "The current PHP version being used is: " . phpversion();
?>

The text on this page will be the output from the PHP script above and will display the version: The current PHP version being used is: 4.4.9

For additional information, you may want to reference: