PHP
文章平均质量分 71
果核儿
后知后觉的后进青年
展开
-
浅谈HTTP Cookie 的 Secure 和 HTTPONLY属性
最近工作中遇到了关于cookie 的secure及httponly属性的问题, 所以关注并学习了一段时间,这里做一下简要记录。关于secure和httponly标志的用途可以参考wikipedia.Secure cookieA secure cookie has the secure attribute enabled and is only used via HTTPS, ensuring原创 2012-10-10 10:25:04 · 13566 阅读 · 0 评论 -
CSRF Protection in CodeIgniter 2.0: A closer look (From Bastian Heist)
Cross Site Request Forgery (CSRF) is one of the most common vulnerabilities in websites and web applications. As announced, CodeIgniter 2.0 will feature a built-in CSRF protection, which I’d like to a转载 2012-10-22 16:21:51 · 970 阅读 · 0 评论 -
系统升级: PHP(5.1.6->5.4.7) & CI(1.7.2->2.1.2)调查记录
原谅我懒....英文调查记录实在不想翻译了....IntroductionThis document states the details of the changes from PHP5.1.6 to the latest version 5.4.5 and the impact on SORT web codes and otherlibraries.Currently, the原创 2012-10-10 10:50:40 · 2305 阅读 · 0 评论 -
php 发送邮件(HTML)解析乱码问题(多余叹号!等)
通过php代码调用mail函数发送邮件, 一个原本很简单的功能, 几小时就写完了, 但调试却花了我一天的时间. 现在把这个过程记录下来, 供以后参考.问题描述: php mail 函数发送邮件, 头和内容分别为,$header = "MIME-Version: 1.0\r\nContent-type: text/html; charset=utf-8\r\nFrom: test";原创 2013-06-07 17:06:54 · 2124 阅读 · 1 评论 -
CI 框架里log级别设置(ZZ)
在CI中,对于错误处理和LOG的处理方法,下面小结下: 1 默认在index.php 中,error的级别是ALL,把所有信息都设置出来的 error_reporting(E_ALL); 可以把其改成E_ERROR级别 2 设置LOG,LOG在application/config下设置 $config['log_threshold'] = 0; [code...原创 2012-08-06 14:29:27 · 751 阅读 · 0 评论