摘要: 搜集的两个function第一个在我的测试中发现不够好,大部分还是准的// Returns true if $string is valid UTF-8 and false otherwise. function is_utf8_bak($word) { if (preg_match("/^([".chr(228)."-".chr(233)."]{1}[".chr(128)."-".chr(191)."]{1}[".chr(128)."-".chr(191)."]{ 阅读全文
posted @ 2011-03-09 23:57 greengnn 阅读(7171) 评论(1) 推荐(0) 编辑
摘要: apache log格式127.0.0.1 - - [24/Feb/2011:19:20:27 +0800] "GET /seo/t.php?pt=Jerry%20Qu%27s%20HTML%20document%20%u6D4B%u8BD5%u4E2D%u6587&pu=http%3A//localhost/seo/&ref=http%3A//www.baidu.com/s%3Fbs%3Ddocument.url%26f%3D8%26wd%3Dphp+referer&wh=1280x800&pid=93BHPILMEB&rnd=44200 H 阅读全文
posted @ 2011-02-24 20:35 greengnn 阅读(1239) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2011-02-14 18:30 greengnn 阅读(691) 评论(0) 推荐(0) 编辑
摘要: YUI Compressor [压缩]http://developer.yahoo.com/yui/compressor/java -jar yuicompressor-x.y.z.jar myfile.js -o myfile-min.js --charset utf-8CSSTidy [格式化]http://csstidy.sourceforge.net/download.phpcsstidy mycssfile.css myoutputfile.csspngout [图片压缩格式转换]http://www.advsys.net/ken/util/pngout.htmpngout a.gi 阅读全文
posted @ 2011-02-12 18:05 greengnn 阅读(498) 评论(0) 推荐(0) 编辑
摘要: URL/URI Format SupportThe following table lists supported URL/URI scheme format support forSymbian devices.Table: URL/URI supportURL/URI formatS60Example URIiCalnovCalyesSMS linkyesSMS with bodyyesMMSyesMMS with number and bodyyesmailto with cc, body, and subjectyesWTAI add numberyesCTI callyesWTAI 阅读全文
posted @ 2011-02-12 17:34 greengnn 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 啥也不说了,看代码。。效果页面http://www.greengnn.org/demos/imglist.html 阅读全文
posted @ 2011-01-28 00:24 greengnn 阅读(425) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2011-01-24 17:37 greengnn 阅读(1342) 评论(1) 推荐(0) 编辑