上一页 1 ··· 8 9 10 11 12
摘要: [root@iZ2zee74ye1o5gsrclebnwZ bin]# netstat -apn|grep 11211 tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 3030/./memcached udp 0 0 0.0.0.0:11211 0.0.0.0:* 30 阅读全文
posted @ 2016-08-09 21:08 toDoYourBest 阅读(122) 评论(0) 推荐(0) 编辑
摘要: ls -a do not ignore entries starting with . ls -l use a long listing format ls -al就是以上两种功能的组合 阅读全文
posted @ 2016-08-08 00:40 toDoYourBest 阅读(116) 评论(0) 推荐(0) 编辑
摘要: authenticate方法,根据验证结果,返回各种错误码,包括 这样,在判断验证结果的时候,直接读取自缩写的定义身份类的errorCode属性就可以判断了 阅读全文
posted @ 2016-08-07 19:21 toDoYourBest 阅读(304) 评论(0) 推荐(0) 编辑
摘要: CModel::hasErrors方法,竟然在authenticate时也能用,不是应该在所有的rules都验证完之后才能获取吗?后来经过测试和查看源码,才知道,hasError并不是一并获取,而是根据当前已经验证过的rule实时获取,也就是说,假如有a,b,c,d四条rule,那么如果crule需 阅读全文
posted @ 2016-08-06 23:45 toDoYourBest 阅读(584) 评论(0) 推荐(0) 编辑
摘要: PHP支持两种抽象的访问当前命名空间内部元素的方法, __NAMESPACE__魔术常量和namespace关键字。 测试 结果 通过测试,得知 当前命名空间名称是根据执行上下文来判断的,而不是根据调用代码所在的位置 关于$this,是谁的实例? 结果是:in static C Object ( ) 阅读全文
posted @ 2016-05-10 17:37 toDoYourBest 阅读(170) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12