How to tell what PHP version your WordPress web server is running?
Two Simple Ways to Check Your PHP Version
Finlay Auckland: New Zealand WordPress Design, Development > Blog > PHP > How to tell what PHP version your WordPress web server is running?

How to tell what PHP version your WordPress web server is running?

Sometimes things do not work and you may think it might be because you have the wrong version of PHP. Lucky there is a really simple way to check the current version your web server is running. Different versions of PHP may have different default settings, and in the case of newer versions, might have new…

December 16, 2017 by miles

Sometimes things do not work and you may think it might be because you have the wrong version of PHP. Lucky there is a really simple way to check the current version your web server is running.

Different versions of PHP may have different default settings, and in the case of newer versions, might have new functions.

Open your terminal and run :

curl -I http://websitename.com

Another option is to put a single line of code in a PHP file, and run it on your server to get all the information you need. To create a phpinfo file; open a text file, add the following lines, and save:

Filename: phpinfo.php

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>

PHP 7 is the choice for WordPress web developers today. Faster performance, less resources, and cool new features like scalar type declarations, the Spaceship Operator, anonymous classes, and more.

If you are looking for a high quality website solution contact us at Finlay – Freelance WordPress developer in Auckland, New Zealand.