摘要: http://news.newhua.com/news1/programming/2007/924/0792411512H35CJ5J4C9G899HA68FJ.html<?phpecho "Program starts at ". date('h:i:s') . ".\n";$timeout=10;$result=array();$sockets=array();$convenient_read_block=8192;/* Issue all requests simultaneously; there's no blockin 阅读全文
posted @ 2012-02-16 18:17 taek 阅读(489) 评论(0) 推荐(0) 编辑
摘要: http://news.newhua.com/news1/programming/2007/924/0792411512H35CJ5J4C9G899HA68FJ.html 阅读全文
posted @ 2012-02-16 18:10 taek 阅读(832) 评论(0) 推荐(0) 编辑
摘要: <html><head> <title>拖动行测试</title> <script language="javascript"> var beginMoving=false; function MouseDownToMove(obj){ obj.style.zIndex=1; obj.mouseDownY=event.clientY; obj.mouseDownX=event.clientX; beginMoving=true; obj.setCapture(); }function MouseMoveToMove 阅读全文
posted @ 2012-02-10 16:03 taek 阅读(2265) 评论(0) 推荐(0) 编辑
摘要: <table id="friend_comment-table" width="80%" > <tr> <td class="label">网友点评:</td> <td> <a href="#" onclick="addLadder(this,'friend_comment-table')"><strong>[+]</strong></a> <table> &l 阅读全文
posted @ 2012-02-10 15:08 taek 阅读(296) 评论(0) 推荐(0) 编辑
摘要: var Browser = new Object();Browser.isMozilla = (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined') && (typeof HTMLDocument != 'undefined');Browser.isIE = window.ActiveXObject ? true : false;Browser. 阅读全文
posted @ 2012-02-10 14:16 taek 阅读(199) 评论(0) 推荐(0) 编辑
摘要: srcElement是设置或获取触发事件的对象使用它的好处是: 例如鼠标滑过一组标签,滑过时变色, 这时就不用document.getElementById("xx").onmouseover=function(){...}这种形式 <div id="a"> <div id='b1'>xxx</div> <div id='b2'>xxx</div> <div id='b3'>xxx</div> </div> 直接 阅读全文
posted @ 2012-02-10 14:10 taek 阅读(3445) 评论(0) 推荐(0) 编辑
摘要: http://qiao.baidu.com/download/ 阅读全文
posted @ 2012-02-10 10:03 taek 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Apache模块开发/用C语言扩展apache(1:简述)bylinux_progApache是一个非常稳定而且非常open的webserver,它的很多功能都可以通过plugin的方式去扩展。比如:mod_proxy使得apache可以作代理,mod_rewrite使得apache可以实现非常强大的urlmapping和rewritting功能,你是否也想自己来开发一个apachemodule呢?网上这方面的文章非常的少,而且全是E文,希望我的这篇文章能够给你一些实质性的帮助。开发apachemodule之前,我们有必要先分析一下其源代码。$cdhttpd-2.2.4/$ls其中:serve 阅读全文
posted @ 2012-02-09 14:35 taek 阅读(2367) 评论(0) 推荐(0) 编辑
摘要: 用(?>…)实现固化分组(成功匹配后,回簌时不会考虑这个匹配的字符) 具体来说,使用「(?>…)」的匹配与正常的匹配并无差别,但是如果匹配进行到此结构之后(也就是,进行到闭括号之后),那么此结构体中的所有备用状态都会被放弃(不能被回溯)。 也就是说,在固化分组匹配结束时,它已经匹配的文本已经固化为一个单元,只能作为整体而保留或放弃。括号内的子表达式中未尝试过的备用状态都不复存在了,所以回溯永远也不能选择其中的状态(至少是,当此结构匹配完成时,“锁定(locked in)”在其中的状态)。 例子: 比如要处理一批数据,原来格式为123.456,后来因为浮点数显示问题,部分数据格式变为 阅读全文
posted @ 2012-02-08 15:07 taek 阅读(3443) 评论(0) 推荐(0) 编辑
摘要: 回溯 是针对量词来说的,$str = preg_replace('%<script>.+?</script>%i','',$str);//非贪婪看起来,好像没什么问题,其实则不然。若$str = '<script<script>alert(document.cookie)</script>>alert(document.cookie)</script>';那么经过上面的程序处理,其结果为$str = '<script<script>alert(doc 阅读全文
posted @ 2012-02-08 11:45 taek 阅读(631) 评论(0) 推荐(0) 编辑