windk

09 2011 档案

http://www.php.net/manual/zh/refs.basic.other.php 有时间多看看这个。
摘要:http://www.php.net/manual/zh/refs.basic.other.php非常有用的php函数系列 阅读全文

posted @ 2011-09-14 19:03 windk 阅读(170) 评论(0) 推荐(0)

php_strip_whitespace 去除php文件空行,注释
摘要:stringphp_strip_whitespace(string$filename)Return source with stripped comments and whitespace 阅读全文

posted @ 2011-09-14 18:57 windk 阅读(393) 评论(0) 推荐(0)

jquery, 点击页面元素,使其移动到浏览器顶部,再点击还原。
摘要:<script> $(function(){ //save the position top of browser's scroll prevous = 0; $(".details").toggle( function(){ $(".details").next().hide(); $(this... 阅读全文

posted @ 2011-09-08 13:34 windk 阅读(589) 评论(0) 推荐(0)

php 解析dom,可用作抓取工具
摘要:// Create DOM from URL or file$html = file_get_html('http://www.google.com/');// Find all images foreach($html->find('img') as $element) echo $element->src . '<br>';// Find all links foreach($html->find('a') as $element) echo $element->href . '&l 阅读全文

posted @ 2011-09-06 11:22 windk 阅读(273) 评论(0) 推荐(0)

MySQL 中文截取 字符串 中英文混合截取 无乱码
摘要:SET NAMES 'utf8';SELECT LEFT('截取字符串test.STRING' COLLATE utf8_general_ci, 1) AS result; 原理就是设置一下 COLLATE, 翻译成 整理 也可以,字符编码方式也可以。 阅读全文

posted @ 2011-09-06 11:19 windk 阅读(2933) 评论(0) 推荐(1)

导航