摘要: Thinkphp生成多sitemap文件 我们知道sitemap对于seo的重要性,很多介绍只生成一个文件sitemap.xml ,但是如果网站内容比较多,就要生成多个sitemap文件,因为搜索引擎对sitemap文件大小和条数有限制,比如google对每个sitemap文件的限制为5万条数据。何 阅读全文
posted @ 2016-12-29 11:50 goldenstones 阅读(1274) 评论(7) 推荐(0) 编辑
摘要: http://www.hashbangcode.com/blog/netscape-http-cooke-file-parser-php I recently needed to create a function that would read and extract cookies from a 阅读全文
posted @ 2016-11-14 12:12 goldenstones 阅读(437) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/bravezhe/article/details/8301569 1.例子,查找不以baidu开头的字符串。baidu.comsina.com.cn 正则:^(?!baidu).*$ 匹配结果就是第2行,也就是第1行被排除了这里使用了零宽度断言(?!exp) 阅读全文
posted @ 2016-11-11 14:57 goldenstones 阅读(6642) 评论(0) 推荐(1) 编辑
摘要: 最常见的: 静态地址重定向到带参数的动态地址 rewrite "^(.*)/service/(.*)\.html$" $1/service.php?sid=$2 permanent; 反过来: 带参数的动态地址重定向到静态地址 if ($query_string ~* id=(.*)) { set 阅读全文
posted @ 2016-06-18 17:33 goldenstones 阅读(3449) 评论(0) 推荐(0) 编辑
摘要: 当访问http://cbs.test.com跳转到http://www.test.com/test/cbs/方法一: (这种方法浏览器地址会变www.test.com/test/cbs)server { listen 80; server_name www.test.com; location / 阅读全文
posted @ 2016-06-18 16:36 goldenstones 阅读(3273) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-06-08 10:58 goldenstones 阅读(131) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/pfzeng/p/4162951.html 对于JavaScript自定义事件,印象最深刻的是用jQuery在做图片懒加载的时候。给需要懒加载的图片定义一个appear事件。当页面图片开始出现时候,触发这个自定义的appear事件(注意,这里只触发一次) 阅读全文
posted @ 2016-05-05 17:45 goldenstones 阅读(143) 评论(0) 推荐(0) 编辑
摘要: function trims(){ this.init = function(myarguments){ if(arguments.length 0){return false;} this.arg = myarguments; this.len = this.arg.length; if(this 阅读全文
posted @ 2016-04-06 17:42 goldenstones 阅读(186) 评论(0) 推荐(0) 编辑
摘要: http://www.phpweblog.net/kiyone/archive/2007/04/19/1138.html 阅读全文
posted @ 2016-04-06 14:46 goldenstones 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Nbimer主页 阅读全文
posted @ 2015-12-23 17:23 goldenstones 阅读(428) 评论(0) 推荐(0) 编辑