Visual Basic (1)
About this site
Links to us
General :: Programming :: php
Find help with php (PHP: Hypertext Preprocessor), an open source, server-side, HTML embedded scripting language used to create dynamic Web pages.
This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.
Generated 16:03:16 on Feb 19, 2019
Get information about php version and configuration
Question: How can I find out which version of php is installed on my server?
Answer: Use the php function phpinfo() which delivers lots of information about your server's configuration. Typically this will look like below. The function will put out the information HTML encoded when called within a web page and as plain text when using the CLI mode.
There is a configuration variable expose_php which decides whether PHP will expose the fact that it is installed on the server (e.g. by adding its signature to the Web server header). If this variable is set to off then see less information.
If you're just interested in the version number, you can call phpversion() instead. This function returns version information as a string.
echo 'PHP version: ' . phpversion();
|Most recent comments