在此httpd.conf最后添加以下语句,用以支持php程序:
ScriptAlias /php/ "C:/PHP/"
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe"
ScriptAlias /php/ "C:/PHP/"
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe"
去phpe.net上面查吧,多的是~
不过,我可以帮你,要这种文章联系我
我给你找
byrd()老兄,你说的那段代码我也试过,也出现那种情况。
keen1982(keen)老兄能帮我找,真是太感谢了,,找到的话就发到我的邮箱好吗。
hover_online(ξ芎メ)老兄,phptrial 2.2.0 到哪里下载,怎么用法?
ScriptAlias /php433/ "C:/php433/"
AddType application/x-httpd-php .php
Action application/x-httpd-php4 "/php433/php.exe"这段代码前面的空格去掉还有 点 我的电脑---工具---文件夹选项--查看--隐藏已知文件类型和扩展名 把它前面的勾去掉
AddType application/x-httpd-php .php
Action application/x-httpd-php4 "/php433/php.exe"这3段代码前面都没空格了?都顶行写了?
还有你测试的文件名 是以php格式的?
如果确保上面没有错误 那就是你的php版本和apache有冲突(可能) 那么下另外一个版本试试
APACHE用的是apache_2.0.47-win32-x86-no_ssl.msi版本,PHP用的是php-4.3.3-Win32版本。anybody999(anybody999) ,再麻烦您帮我诊断一下。
php-5.0.0b3-Win32
apache_2.0.48-win32-x86-no_ssl.msi
我的配置如下:
LoadModule php5_module f:\company\php\sapi\php4apache2.dll
AddType application/x-tar .tgz
AddType application/x-httpd-php .php
AddType image/x-icon .ico
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
ScriptAlias /php/ "f:/company/php/"
Action application/x-httpd-php "/php/php.exe"
我的电脑-工具-文件夹选项-查看选项卡,勾掉“隐藏文件扩展名”这项,确定。然后把test.php.txt 改成test.php就可以了。