会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
voidcat
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2015年10月18日
iOS 延迟执行代码
摘要: //延迟执行 dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)),dispatch_get_main_queue(), ^{ //要执行的代码 });
阅读全文
posted @ 2015-10-18 15:45 voidcat
阅读(198)
评论(0)
推荐(0)
2015年10月15日
App Transport Security has blocked a cleartext HTTP (http://)
摘要: App Transport Security has blocked a cleartext HTTP (http://)标签:classstylelogcom使用httpsiithtml 错误描述:App Transport Security has blocked a cleartext HTT...
阅读全文
posted @ 2015-10-15 00:15 voidcat
阅读(532)
评论(0)
推荐(0)
2015年9月8日
js对象字符串互转
摘要: 利用原生JSON对象,将对象转为字符串var jsObj = {};jsObj.testArray = [1,2,3,4,5];jsObj.name = 'CSS3';jsObj.date = '8 May, 2011';var str = JSON.stringify(jsObj);alert(s...
阅读全文
posted @ 2015-09-08 19:48 voidcat
阅读(232)
评论(0)
推荐(0)
[转]单例模式与静态变量在PHP中
摘要: 在PHP中,没有普遍意义上的静态变量。与Java、C++不同,PHP中的静态变量的存活周期仅仅是每次PHP的会话周期,所以注定了不会有Java或者C++那种静态变量。所以,在PHP中,静态变量的存在意义仅仅是在某个结构体中(方法或者类)中传递一个变量,其作用域在此文件内。看个例子好了12345678...
阅读全文
posted @ 2015-09-08 19:44 voidcat
阅读(183)
评论(0)
推荐(0)
2015年9月5日
CSRF 攻击的应对之道
摘要: 转载自imb文库CSRF(Cross Site Request Forgery, 跨站域请求伪造)是一种网络的攻击方式,该攻击可以在受害者毫不知情的情况下以受害者名义伪造请求发送给受攻击站点,从而在并未授权的情况下执行在权限保护之下的操作,有很大的危害性。然而,该攻击方式并不为大家所熟知,很多网站都...
阅读全文
posted @ 2015-09-05 20:44 voidcat
阅读(293)
评论(0)
推荐(0)
2015年7月13日
高级sql注入
摘要: 作 者: CRoot时 间: 2015-06-02,19:02:11链 接: http://bbs.pediy.com/showthread.php?t=201147/**Author:CRoot*Source:http://croot.cf/HelloWord/239.html*Date:2015...
阅读全文
posted @ 2015-07-13 21:44 voidcat
阅读(301)
评论(0)
推荐(0)
2015年7月11日
ip接口调用
摘要: "; */// 利用淘宝接口根据ip查询所在区域信息$res1 = file_get_contents("http://ip.taobao.com/service/getIpInfo.php?ip=$ip");$res1 = json_decode($res1);/* print_r($res1);...
阅读全文
posted @ 2015-07-11 22:36 voidcat
阅读(606)
评论(0)
推荐(0)
2015年7月10日
magic_quotes_gpc、mysql_real_escape_string、addslashes的区别及用法
摘要: 本篇文章,主要先重点说明magic_quotes_gpc、mysql_real_escape_string、addslashes三个函数方法的含义、用法,并举例说明。然后阐述下三者间的区别、关系。一、magic_quotes_gpc这个函数,只有在页面传递 $_GET,$_POST,$_COOKIE...
阅读全文
posted @ 2015-07-10 22:37 voidcat
阅读(509)
评论(0)
推荐(0)
预防数据库攻击的正确做法
摘要: get_magic_qoutes_gpc():当magic_quotes_gpc=On的时候,函数get_magic_quotes_gpc()就会返回1当magic_quotes_gpc=Off的时候,函数get_magic_quotes_gpc()就会返回0magic_quotes_gpc函数在p...
阅读全文
posted @ 2015-07-10 22:26 voidcat
阅读(360)
评论(0)
推荐(0)
2015年7月4日
巧妙的Jq仿QQ游戏导航界面学习
摘要: 先贴上源代码 1 2 3 4 5 仿腾讯游戏首页小幻灯片jquery插件 6 7 34 35 36 37 38 39 40 41 42 43 ...
阅读全文
posted @ 2015-07-04 21:20 voidcat
阅读(392)
评论(0)
推荐(0)
上一页
1
2
公告