当前位置:首页 > 搜索和 An 相关的文章

php ob_start(ob_gzhandler)进行网页压缩

添加日期:2014-01-16 11:44:57 发布:smiling 
先来看ob_start用法,使用PHP ob_start()函数打开browser的cache,这样可以保证cache的内容在你调用flush(),ob_end_flush()(或程序执行完毕 ...

php进行压缩 ob_gzhandler函数有3种方法

添加日期:2014-01-07 16:14:28 发布:smiling 
使用ob_gzhandler函数有3种方法让它对php进行压缩:1、在php ini中设置output_handler = ob_gzhandler2、在 htaccess中加入php_value ou ...

php-fpm 启动报please specify user and group other than root, pool ‘default

添加日期:2013-12-06 23:35:26 发布:smiling 
安装PHP ,配置fpm 成功后启动发现报错:Starting php_fpm Aug 03 06:51:54 269165 [ERROR] fpm_unix_conf_wp(), line 124: plea ...

Fatal error: Cannot redeclare class 原因分析与解决办法

添加日期:2013-12-06 23:04:38 发布:smiling 
我使用的都是php __autoload状态自动加载类的,今天好好的程序不知道怎么在运行时提示Fatal error: Cannot redeclare class 了,看是 ...

Strict Standards: Only variables should be passed by reference in

添加日期:2013-12-06 22:58:52 发布:smiling 
php中使用内置的reset函数可以获取array的第一个元素的值,例如:$arr=array(& 39;one& 39;,& 39;two& 39;,& 39;three& 39;);echoreset($arr ...

php empty()出错,Fatal error: Can’t use function return

添加日期:2013-12-04 23:25:35 发布:smiling 
今天在利用empty函数是出现Fatal error: Can’t use function return value in write context错误提示,觉得很怪,这个函数 ...

Warning: Cannot modify header information - headers already sent by

添加日期:2013-12-04 22:26:32 发布:smiling 
如果在执行php程序时看到这条警告: "Warning: Cannot modify header information - headers already sent by " 有以下几种解 ...

php Cannot modify header information-headers already sent by解决办法

添加日期:2013-12-04 22:23:49 发布:smiling 
昨天在使用cookie时页面报错:php Cannot modify header information-headers already sent by了,下面我来总结关于报错的解决办法,代 ...

iconv() [function.iconv]: Detected an illegal character in

添加日期:2013-12-04 22:05:45 发布:smiling 
用iconv函数将gb2312转换为utf-8时,怎么有些汉字会出现问题,像 "??;字就会提示如下:Notice: iconv() [function iconv]: Detected an il ...

php提示 Notice: Use of undefined constant name - assumed

添加日期:2013-12-04 21:16:28 发布:smiling 
我们知道php在数组中写变量有二几种方法,我们出现这种提示就是你写成了[name]这种所以会有Notice: Use of undefined constant name ...

CentOS 64 编译PHP出现 error: Cannot find ldap libraries in /usr/lib

添加日期:2013-12-03 21:18:55 发布:smiling 
在CentOS 64位下编译安装PHP5 4 8。cp -frp usr lib64 libpng* usr lib 结果在configure的时候提示,configure: error: Cannot f ...

php Notice : Use of undefined constant解决办法

添加日期:2013-11-30 15:20:34 发布:smiling 
错误提示:php Notice : Use of undefined constant,分析:这些是 PHP 的提示而非报错,PHP 本身不需要事先声明变量即可直接使用,但是对未声明变量会有提示。一般作为正式的网站会把提示关掉的 ...