Windows下运行php-cgi报错如下:
D:\php>php-cgi.exe -b 127.0.0.1:9000 -c php.ini
PHP Warning: PHP Startup: in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: in <b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: in Unknown on line 0
<br />
解决方法:
这是PHP配置的问题,找开php.ini文件,找到“extension_dir”
;extension_dir = "./" 改为: extension_dir = "D:/php/ext"
注:更改为绝对路径即可;
本文出自 “方寸小山” 博客,请务必保留此出处http://63638790.blog.51cto.com/513514/1650980
php warning: php startup: in unknown on line 0
原文地址:http://63638790.blog.51cto.com/513514/1650980