php中对象转换数组与数组转换对象实例
用stdClass转换数组为对象 1 $arr=array(); $arr[a]=1; $arr[b]=2; $arr[c]=3;
2021-12-07 13:19
105 
php连接redis出现Redis server went away
出现这个问题的描述:phpredis的版本是:phpredis-2.2.4.zipredis的版本是:redis-2.8.6.tar.gzlinux的版本是:Linux 2.6.32-71.el6.i686 i686
2021-12-07 13:19
112 
It is not safe to rely on the system解决方法
PHP调试的时候出现了警告:It is not safe to rely on the system解决方法,其实就是时区设置不正确造成的,本文提供了3种方法来解决这个问题。实际上,从PHP 5.1.0开始当对使用d
2021-12-07 13:19
109 
PHP Cookie设置删除
1、设置CookieSetCookie函数格式int SetCookie(string name, string value, int expire, string path, string domain, int
2021-12-07 13:19
165 
Cannot send session cookie - headers already sent
我的解决方法在最上面加ob_start(),不知道有没有什么坏处....改php.ini看起来不是很好,要不怎么默认不开...笨方法:把错误警告全不显示!@......解决方案:1)适用于有权限编辑PHP.INI的人
2021-12-07 13:19
124 
php 清除session
● 如何删除session? 1、unset ($_SESSION[xxx])删除单个session,unset($_SESSION[xxx]) 用来unregister一个已注册的session变量。其作用和se
2021-12-07 13:19
115 
使用OpenSSL生成证书
Step 1. Create key (password protected)openssl genrsa -out prvtkey.pem 1024/2038 (with out passwor
2021-12-07 13:19
108 
php foreach 用法
php foreach例子
2021-12-07 13:19
116 
T:0.013051s,M:235.79 KB
返回顶部 留言