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?
Related Topics
jQuery: Read and Change Data Attribute Value
Tutorial | 0 Comments
PHP: Upload of large Files
Tutorial | 0 Comments
Rewrite Text Files with a fixed Line Length
Tutorial | 0 Comments
Windows Batch Script: Computer Shutdown
Tutorial | 2 Comments
Repair Text Files with mixed Line Breaks
Tutorial | 0 Comments
JavaScript: Get current Date and Time
Tutorial | 1 Comment
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.
It is quite easy to find out that with a small PHP script. You only have to call the function 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