php中文字符串截取乱码问题解决方法

出现中文截取乱码的问题一般是中文文合混时比较多,如果你截取英文不会有问题,中文就会有,主要原因是:字符串编码为UTF-8的,一个中文字符占三个字节而字符串编码为GB2312的,一个中文字符占两个字节了,下面我来先来看实例。

阅读全文

php设置时区方法详解介绍

在php中我们要设置时间的方法有很多种,最常用的就是直接在php.ini中进行修改了date.timezone,如果没有服务器权限可以直接使用date_default_timezone_set函数进行设置下面我给大家介绍。

阅读全文

php错误提示:Call-time pass-by-reference has been deprecated

今天在写引用时突然出现了Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of getimagesize(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer错误,后来才知道原因是此方法已不被赞成并在 PHP/Zend 未来的版本中很可能不再支持了

阅读全文

phpmyadmin配置文件现在需要绝密的短语密码

在使用phpmyadmin时我们可能会碰到phpmyadmin配置文件现在需要绝密的短语密码错误提示,配置如下:phpmyadmin/config.inc.php,代码如下:

如果你的phpmyadmin中没有config.inc.php 这个文件我们要找到 phpMyAdmin 文件中有一个文件"config.sample.inc.php",然后重命名为"config.inc.php"上传服务器,然后把:$cfg['blowfish_secret'] = ";或其它值即可.

阅读全文

Warning: session_start() [function.session-start]

我的电脑中的错误提示:Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:APMServ-v5.2.6APMServ5.2.6wwwhtdocsKingNerOAuserUserKqManage.php:1) in D:APMServ-v5.2.6APMServ5.2.6wwwhtdocsKingNerOAusercheckaccess.php on line 2

阅读全文