各位好!
我是WIN7的系统,已安装好apache,已按常规配置好php,但使用<?phpinfo()?>测试只能显示源代码。请教高手解答为什么?多谢。
具体在apache:\httpd.conf配置如下:
LoadModule php5_module "D:/www/php54/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "D:/www/php54"
DirectoryIndex index.html index.php
<Directory "D:/www/apache/htdocs">
我是WIN7的系统,已安装好apache,已按常规配置好php,但使用<?phpinfo()?>测试只能显示源代码。请教高手解答为什么?多谢。
具体在apache:\httpd.conf配置如下:
LoadModule php5_module "D:/www/php54/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "D:/www/php54"
DirectoryIndex index.html index.php
<Directory "D:/www/apache/htdocs">
这样写,你让php是认为<? phpinfo() 呢,还是<?php info() ...
<?php
echo phpinfo();
?>
你这样试试。