maqian 2012-09-03
1.首先配置ScriptAlias目录为自己php根目录
<IfModulealias_module>
ScriptAlias/php/"D:/Run/php/"
</IfModule>
2.配置目录权限否则无法运行php
<Directory"D:/Run/php/">
AllowOverrideNone
OptionsNone
Orderallow,deny
Allowfromall
</Directory>
3.添加php执行文件类型
<IfModulemime_module>
AddTypeapplication/x-httpd-php.php
AddTypeapplication/x-httpd-php.html
</IfModule>
4.在所有LoadModel的最后添加上这句话
Actionapplication/x-httpd-php"/php/php-cgi.exe"
最后重启Apache就可以了
<?php. if (!empty($_POST)) {. $data1 = $_POST["data1"];$data2 = $_POST["data2"];$fuhao = $_POST["fuh