在httpd.conf里加 AddType application/x-tar .tgz
AddType image/x-icon .ico
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .shtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddType application/x-httpd-php3-source .phps
Action application/x-httpd-php "/php/php.exe"然后重启apache
AddType image/x-icon .ico
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .shtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddType application/x-httpd-php3-source .phps
Action application/x-httpd-php "/php/php.exe"然后重启apache
要是CGI方式就在http.conf是写以一下代码:
scriptAlias /php4/ "c:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
Addtype application/x-httpd-php4/ .php
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php .phtml