上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: 今天,数据库的操作越来越成为整个应用的性能瓶颈了,这点对于Web应用尤其明显。关于数据库的性能,这并不只是DBA才需要担心的事,而这更是我们程序员需要去关注的事情。当我们去设计数据库表结构,对操作数据库时(尤其是查表时的SQL语句),我们都需要注意数据操作的性能。这里,我们不会讲过多的SQL语句的优化,而只是针对MySQL这一Web应用最多的数据库。希望下面的这些优化技巧对你有用。1. 为查询缓存优化你的查询大多数的MySQL服务器都开启了查询缓存。这是提高性最有效的方法之一,而且这是被MySQL的数据库引擎处理的。当有很多相同的查询被执行了多次的时候,这些查询结果会被放到一个缓存中,这样,后 阅读全文
posted @ 2013-12-25 17:16 忆殇之痕 阅读(115) 评论(0) 推荐(0) 编辑
摘要: header('Access-Control-Allow-Origin: *'); 阅读全文
posted @ 2013-12-23 15:44 忆殇之痕 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 内容更新中。。。 阅读全文
posted @ 2013-12-20 10:23 忆殇之痕 阅读(113) 评论(0) 推荐(0) 编辑
摘要: //获取当前的url地址和参数function get_url(){ return 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];}echo get_url();//对url进行格式化和反格式化echo urlencode('http://baidu.com');echo urldecode(urlencode('http://baidu.com')); 阅读全文
posted @ 2013-12-14 21:44 忆殇之痕 阅读(195) 评论(0) 推荐(0) 编辑
摘要: data[$i]->picurl.'">'; }$p=$p+1;echo 'Next Page';?> 阅读全文
posted @ 2013-12-14 21:26 忆殇之痕 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 今天select * from 表名 where to_days(时间字段名) = to_days(now());昨天SELECT * FROM 表名 WHERE TO_DAYS( NOW( ) ) – TO_DAYS( 时间字段名) <= 17天SELECT * FROM 表名 where DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= date(时间字段名)近30天SELECT * FROM 表名 where DATE_SUB(CURDATE(), INTERVAL 30 DAY) <= date(时间字段名)本月SELECT * FROM 阅读全文
posted @ 2013-12-06 14:02 忆殇之痕 阅读(3814) 评论(0) 推荐(0) 编辑
摘要: //弹出框 public void totast(String text) { Toast.makeText(getApplicationContext(), text, Toast.LENGTH_SHORT).show(); } //浏览器打开网址 private void open_url(String sUrl) { Intent intent = new Intent(); intent.setData(Uri.parse(sUrl)); intent.setActi... 阅读全文
posted @ 2013-11-15 16:11 忆殇之痕 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 一、安装官网教程下载node.js二、使用sudo npm install -g phonegap 下载phonegap源三、在桌面上创建phonegap文件夹四、cd /Users/zhouzhi/Desktop/phonegap 进入刚才创建的文件夹五、使用phonegap create hello com.example.hello HelloWorld 创建一个新的项目六、cd hello进入刚才创建的项目七、phonegap run ios 运行项目八、进入项目文件夹找到项目文件运行 阅读全文
posted @ 2013-11-04 15:19 忆殇之痕 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-10-19 16:28 忆殇之痕 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 显示网页Uri uri = Uri.parse("http://www.google.com.hk/");Intent intent = new Intent(Intent.ACTION_VIEW, uri);startActivity(intent); 显示地图 Uri uri = Uri.parse("geo:38.899533,-77.036476");Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); //其他geo... 阅读全文
posted @ 2013-10-17 15:18 忆殇之痕 阅读(207) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页