摘要: 1.headers_list() //返回头部信息 2.header("Content-type: text/html; charset=utf-8") //修改编码 3.header("Content-type: imge/png"); 4.hearders_sent() //判断是否发送HTTP 阅读全文
posted @ 2016-10-20 16:51 Docter 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1.addslashes($str); //转义时str中的所有特殊字符 stripslashes($str) //还原 2.bin2hex($str); //将2进制转成16进制 3. echo chr(99); //将ascll 码转成对应字母 4.chunk_split($str,6,'<br 阅读全文
posted @ 2016-10-20 15:55 Docter 阅读(169) 评论(0) 推荐(0) 编辑
摘要: include './phpqrcode/phpqrcode.php'; //引入QR库 QRcode::png("leo", 'qrcode.png', 'L', 10); //生成二维码 pang(value,path,容错级别,size) echo '<img src="qrcode.png" 阅读全文
posted @ 2016-10-20 14:20 Docter 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1.修改Apache配置文件:httpd.conf #LoadMoule rewrite_module modules/mod_rewrite.so --去掉注释 2.查找httpd.conf 中的 AllowOverride 将其值改为All 3.重启服务器 4.根目录下创建文件名为 -- .ht 阅读全文
posted @ 2016-10-20 11:51 Docter 阅读(6102) 评论(0) 推荐(0) 编辑