<?php phpinfo();?>

 

在httpd.conf中:

 

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:\\Program Files\\PHP\\"
LoadModule php5_module "C:\\Program Files\\PHP\\php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

 

在mime.types文件中

 

application/x-httpd-php    php
application/x-httpd-php-source    phps