- 博客(9)
- 收藏
- 关注
原创 《PHP扩展开发及内核应用》读书笔记(更新到第3章)
https://docs.google.com/document/d/1-2M-5Ctw0BHObJw-3-kXdhJczXFvRlTZL1kZaVcLXAU/edit?usp=sharing
2013-11-06 10:59:04
531
原创 总结--JQuery篇(想点写点)
1,获取select选中项$('#year').find('option:selected');2,动态生成多项相同html时候for循环里要写好多“+”,累 var str = ""; for (i = 1; i < h; i++) { str += ' ' + '' + 'Room 0' +
2013-08-02 16:34:14
840
原创 php的base64_encode()加号问题
url传递base64加密串时,“+”会在url编码中视为空格,解密就会失败解决方法,base64加密后替换“+”“/”,解密前再替换回去。。。 $str = str_replace('-','+',$str); $str = str_replace('_','/',$str);
2013-08-02 15:01:04
7929
原创 获取下载地址(点击下载,另存为的时候)
无论前台href直接写下载地址,还是php、ajax处理得到下载地址,反正是最终通过http要输出,浏览器监听网络事件chrome:事先F12,切换network标签,copy link address即可
2013-08-02 10:53:42
1867
原创 总结--PHP篇(想点写点)
1,不要使用addslashes,而要使用数据库的函数mysqli->real_escape_string,或pdo的PDO::prepare()2,htmlspecialchars只在展示页面使用,入库不使用
2013-07-30 10:05:59
751
原创 多个swfupload实例上传图片,缩略图
var swfu = new SWFUpload({ // Backend Settings upload_url: "index.php?_p=repair&_a=upload", post_params: {"PHPSESSID": ""}, // File Upload Settings
2013-07-24 09:29:03
10150
原创 总结--Linux命令篇(想点写点)
查找可执行文件nginx路径:find / -type f -name nginxfind / -name nginx.conf查找包含指定字符的文件grep -r 'runplan' /home/run -n
2013-07-18 10:39:23
636
原创 总结--MySQL篇(想点写点)
默认不区分大小写select * from t_cert where cert_num='20110219811107282x';会查询出"20110219811107282x”,“20110219811107282x”
2013-07-17 14:47:18
534
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人