Visual Basic (1)
New related comments
Number of comments in the last 48 hours
Where is my configuration file php.ini ?
Get information about php version and configuration
This article has not been rated yet. After reading, feel free to leave comments and rate it.
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.