【发布时间】:2015-08-16 05:39:51
【问题描述】:
我需要知道用于 magento 安装检查的 PHP 和 MySQL 的确切版本
我从这里获得 MySQl 版本:
//Test What Exact Version PHP & MySQL
echo "<h2>Exact Version PHP & MySQL: </h2>";
$mysql = mysqli_connect('localhost', 'root', '');
/* Test the MySQL connection */
if (mysqli_connect_errno()) {
printf("Connection failed: %s\n", mysqli_connect_error());
exit();
}
/* Print the MySQL server version */
printf("MySQL server version: %s\n", mysqli_get_server_info($mysql));
/* Close the MySQL connection */
mysqli_close($mysql);
但是我怎样才能得到准确的 PHP 版本
【问题讨论】:
标签: php mysql apache server version