随笔分类 -  PHP

摘要:一、常见字符串和文件操作 1、PHP翻转中文字符串 1 2 3 4 5 6 7 8 9 function reverse($str){ $r = array(); for($i=0; $i<mb_strlen($str); $i++){ $r[] = mb_substr($str, $i, 1, ' 阅读全文
posted @ 2017-07-27 22:59 summer0space 阅读(287) 评论(0) 推荐(0)
摘要:1、SQL注入 SQL注入是一种恶意攻击,用户利用在表单字段输入SQL语句的方式来影响正常的SQL执行。还有一种是通过system()或exec()命令注入的,它具有相同的SQL注入机制,但只针对shell命令。 [php] view plain copy $username = $_POST['u 阅读全文
posted @ 2017-07-27 11:12 summer0space 阅读(2237) 评论(0) 推荐(0)