[p=28, null, left][color=rgb(51, 51, 51)]使用phpinfo()函数,该函数就是用来显示php服务器的配置信息,在你的环境下创建一个php文件,在里面数据下面代码,然后执行就会打印出下面结果,可以清楚的看到,你当前php的版本,已经php、apache、mysql等配置信息。[/p][p=28, null, left][color=rgb(51, 51, 51)]<?php[/p][p=28, null, left][color=rgb(51, 51, 51)] Phpinfo();[/p][p=28, null, left][color=rgb(51, 51, 51)]?>[/p][p=28, null, left][color=rgb(51, 51, 51)]
[/p][p=28, null, left][color=rgb(51, 51, 51)]使用phpsersion()函数,这个函数的原型是string phpversion(void);返回的一个string,本函数是返回php版本信息,创建一个php文件,输入以下代码,就可以在浏览器中看到返回的php的版本信息了。[/p][p=28, null, left][color=rgb(51, 51, 51)]<?php[/p][p=28, null, left][color=rgb(51, 51, 51)] echo phpversion();[/p][p=28, null, left][color=rgb(51, 51, 51)]?>[/p]