What are some workarounds for checking what version of PHP when phpinfo() is disabled?
phpversion() will return a full version string.
The PHP_VERSION constant also contains the version information.
Since PHP 5.2.7, there are also constants containing "sub-info" like PHP_MAJOR_VERSION, PHP_MINOR_VERSION....
You can check the PHP_VERSION constant (this is a string) or PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION for their respective integer values.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With