错误信息:(9)Bad file descriptor: don't know how to spawn child process: D:/phptest/gt.php
D:/phptest/gt.php is not executable; ensure interpreted scripts have "#!" first line
(9)Bad file descriptor: don't know how to spawn child process: D:/phptest/gt.php
D:/phptest/gt.php is not executable; ensure interpreted scripts have "#!" first line
(9)Bad file descriptor: don't know how to spawn child process: D:/phptest/gt.php
解决方案 »
- 访问统计函数
- 两道PHP程序员面试题
- 关于时间转化的一个问题
- 为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?
- [求救]在PHP中如何取到flash send()過來的數據
- 新手求教for怎么打印循环0.01这样小数点格式的数字。
- 我要安装MySQL、Apache、PHP等为什么总是不成功呢?
- 如果能用php的文件操作命令访问网络驱动器上的文件(马上给分)
- **大家帮忙看看,我就这点分了。
- PHP中如何收集表单数据?
- 怎样弹出一个没有工具栏,标题栏,地址栏的最大化窗口,但是保留关闭和最大化按钮
- 急问;session 问题,为何无法用session start()---怪
CGI方式安装
在Apache httpd.conf中插入下面的语句(C:/php/替换为你php实际安装位置)
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
# For PHP 5
Action application/x-httpd-php "/php/php-cgi.exe"模块方式安装
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php# configure the path to php.ini
PHPIniDir "C:/php"
CGI用这个
AddType application/x-httpd-php .php .phtml .php3 .php4
Action application/x-httpd-php "C:/php5/php-cgi.exe"
模块用这个
LoadModule php5_module c:\php5\php5apache2.dll参考
http://dev.csdn.net/article/45/45137.shtm
去phpe看看
# "C:/Program Files/Apache Group/Apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
Options +ExecCGI
AddHandler cgi-script .cgi
</Directory>
AddType application/x-httpd-php-source .phpsAction application/x-httpd-php "C:\php5\php-cgi.exe"
ScriptAlias /php/ "d:/phptest/"
<Directory "d:/phptest/">
AllowOverride None
Options None
Order allow,deny
Allow from all
Options +ExecCGI
AddHandler cgi-script .cgi
</Directory>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "/php/php.exe"
模块方式
LoadModule php5_module c:\php\php5apache2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps