![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
雨之赞歌
这个作者很懒,什么都没留下…
展开
-
linux中的memcached无法使用SESSION解决办法
出现以下错误 先确保你的Memcached已经启动了,telnet 127.0.0.1 11211 可以正常使用。 由于新的linux系统开启SElinux安全模式,我们需要将其关闭。 临时关闭:setenforce 0 (重启失效) 永久关闭:修改/etc/selinux/config 文件,将SELINUX=enforcing改为SELINUX=disabled(修改完需要重启 Linux)...原创 2019-06-01 13:34:38 · 308 阅读 · 0 评论 -
类的自动加载 - spl_autoload_register
当我们在一个文件中需要使用许多其他文件中的类时,就需要写很多 include 或 require,非常的麻烦。而使用自动加载,只需要一个方法,就可以自动的去包含需要的类,而不用再去写很多的 include 或 require 了 spl_autoload_register(string $funcName, [$throw=true], [$prepend=false]):bool 参数: $f...原创 2019-07-15 14:10:17 · 86 阅读 · 0 评论