php warning: php startup: in unknown on line 0

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"

注:更改为绝对路径即可;

时间: 2024-11-10 12:13:51

php warning: php startup: in unknown on line 0的相关文章

windows下安装mongodb扩展出现 PHP Warning: PHP Startup: in Unknown on line 0

系统 windows7 集成环境 xampp 1.8.3 php-mongo.dll下载地址 http://pecl.php.net/package/mongo/1.6.0RC2/windows 选择对应的版本下载 将php-mongo.dll放入php的ext文件夹下 修改php.ini. 但是在安装mongodb扩展的时候 出现了PHP Warning:  PHP Startup:  in Unknown on line 0的问题 版本没问题 php版本是5.5.11 和 php-mongo

PHP Warning: Module &#39;modulename&#39; already loaded in Unknown on line 0 的解决方法

今天无间断服务加载php-fpm时,爆出了一个错误:PHP Warning:  Module 'xhprof' already loaded in Unknown on line 0 <br /> 从英文可以看出PHP的扩展xhprof已经加载了,所以就查看php.ini,搜索xhprof.so发现有两个,删除其中一个,然后无间断服务加载php-fpm就解决了该问题. PHP Warning: Module 'modulename' already loaded in Unknown on l

PHP &quot;Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0&quot; 错误

遇到这个问题,研究了很久,结果发现上传的文件的全部没有读权限 不只是文件夹,上传的文件也要至少添加+444的权限,也就是读的权限 Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/mnt/yun0/api/login.php' (include_path='.:/opt/lampp/lib/p

PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0

代码在本地运行一切都OK,放到服务器上,网站访问正常,上传就出现该错误. 提示:PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0 出现问题的服务器:Windows server 2012 Standard iis8 php5.5.37 fastCGI 原因:原来是在配置php环境的时候,php.ini没有设置upload_tmp_dir . 如果 php.ini 没有设置

php5.6,Ajax报错,Warning: Cannot modify header information - headers already sent in Unknown on line 0

php5.6ajax报错 Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unkno

Warning: File upload error - unable to create a temporary file in Unknown on line 0 的解决办法

upload_tmp_dir  临时文件夹问题 上传文件提示 Warning: File upload error - unable to create a temporary file in Unknown on line 0 找到php.ini 中的 upload_tmp_dir 把前边的“:”去掉然后改为upload_tmp_dir =C:\Windows\temp 最后记得重启apache 是不是很简单呀 原文地址:https://www.cnblogs.com/xm666/p/1161

php-fpm启动报错:libgearman.so.8: No such file or directory in Unknown on line 0

从一台服务器上拷贝php-fpm程序到另一台后启动提示错误: /etc/init.d/php-fpm-5.4 start Starting php-fpm [27-Jul-2017 11:31:39] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/gearman

pdo_mysql.so: undefined symbol: pdo_parse_params in Unknown on line 0

我在使用yii2搭建网站的时候,打开该网站时,经常会出现以下警告: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/pdo_mysql.so' - /usr/lib/php5/20121212/pdo_mysql.so: undefined symbol: pdo_parse_params in Unknown on line 0 解决方法: remove and purge th

PHP错误: Exception thrown without a stack frame in Unknown on line 0[转载]

来自:网易博客 就目前我的了解,在两种情况下,PHP会报 Exception thrown without a stack frame in Unknown on line 0这种错误: 1)异常捕捉用了set_exception_handler导向,Exception里面执行另一个Exception 如下面这段代码,就会出现这种问题: http://de.php.net/manual/de/function.set-exception-handler.php#88082 function er