00 Votes

Read out PHP-Version: Which PHP-Version does my Provider use?

Question by Guest | 2016-02-06 at 18:21

For my website and my webspace, I have a hosting contract at a big provider and I would like to know which PHP version of this provider is actually using. I have already logged into my account, but I cannot find any information there.

So, is there a possibility to determine which version of PHP is running on my server?

ReplyPositiveNegative
0Best Answer0 Votes

It is quite easy to find out that with a small PHP script. You only have to call the function phpversion():

<?php

echo phpversion();

?>

If you open a simple plain text file with that content, for example stored under the name version.php on your server, your PHP version will be displayed.

If you need some more information about your entire server configuration of PHP, you can use phpinfo() instead of phpversion(). Using phpinfo(), you get a complete list containing all settings and parameters of your current PHP version.

By the way, it might be that your provider is using different PHP versions for different directories. So, make sure to call the script always in the directory you are interested in.
2016-02-09 at 12:33

ReplyPositive Negative
Reply

Related Topics

PHP: Upload of large Files

Tutorial | 0 Comments

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.