随笔分类 - PHP
摘要:通过php代码调用mail函数发送邮件, 一个原本很简单的功能, 几小时就写完了, 但调试却花了我一天的时间. 现在把这个过程记录下来, 供以后参考.问题描述: php mail 函数发送邮件, 头和内容分别为,$header = "MIME-Version: 1.0\r\nContent-type: text/html; charset=utf-8\r\nFrom: test"; $body = get_email_body($an_array);其中, 参数$an_array 是从数据库中读出的数据, 函数get_email_body将数组中的内容拆分出来,以table
阅读全文
摘要: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 analyze for you.In this year’sTop 10 of the Most Critical Security Risks in Web Applications, which i
阅读全文
摘要:原谅我懒....英文调查记录实在不想翻译了....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 basic environment for SORT site is likebelow:-RedHat Enterprise Linux Server release 5.5 (Tikanga) x86_64-
阅读全文
摘要:最近工作中遇到了关于cookie 的secure及httponly属性的问题, 所以关注并学习了一段时间,这里做一下简要记录。关于secure和httponly标志的用途可以参考wikipedia.Secure cookieA secure cookie has the secure attribute enabled and is only used via HTTPS, ensuring that the cookie is always encrypted when transmitting from client to server. This makes the cookie les
阅读全文

浙公网安备 33010602011771号