What are some workarounds for checking what version of PHP开发者_JS百科 when phpinfo() is disabled?
phpversion()will return a full version string.The
PHP_VERSIONconstant 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.
You could use softPhpInfo() instead which prints also other useful configuration infos. It's an alternative to PHP's built-in phpinfo().
加载中,请稍侯......
精彩评论