摘要: rundll32 shell32.dll, Control_RunDLL hotplug.dll 可以做成快捷方式,运行上面命令就可以打开删除窗口 阅读全文
posted @ 2009-01-17 16:40 Bateau.zhou 阅读(147) 评论(0) 推荐(0) 编辑
摘要: echo sprintf(($a=@file_get_contents('./counter.txt')+1), file_put_contents('./counter.txt', $a)); echo preg_replace('#(\d+)#e', "$1+!file_put_contents('/tmp/counter.txt','$1')", @file_get_contents('/t... 阅读全文
posted @ 2008-12-19 09:46 Bateau.zhou 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1、PHP涉及远程调用接口或采集时,千万不能使用file_get_contets()、fopen()函数。由于file_get_contents()、fopen()函数没有timeout选项,PHP会默认采用60秒为超时时间,因此若接口供应端服务器异常,将导至调用端PHP进程僵死,对服务器性能影响严重! 解决方案即采用fsocketopen,该函数带有timeout属性,建议默认timeo... 阅读全文
posted @ 2008-12-19 09:34 Bateau.zhou 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 常用的APT命令参数 apt-cache search package 搜索包 apt-cache show package 获取包的相关信息,如说明、大小、版本等 sudo apt-get install package 安装包 sudo apt-get install package - - reinstall 重新安装包 sudo apt-get -f install 修复安装"-f = -... 阅读全文
posted @ 2008-12-19 09:30 Bateau.zhou 阅读(140) 评论(0) 推荐(0) 编辑
摘要: $user = "boy9732' OR 1 != 2 -- ";$id = 321312; $sql = "DELETE FROM table1 WHERE user = '$user' AND id = $id";echo $sql; /**** $sql 打印结果:* DELETE FROM table1 WHERE user = 'boy9732' OR 1 != 2 -- ' AND i... 阅读全文
posted @ 2008-12-14 00:15 Bateau.zhou 阅读(272) 评论(1) 推荐(0) 编辑
摘要: PageTest 是AOL的开放源码程序,可以分析web页面执行时间,可以查看页面内加载文件的执行时间,可查看javascript阻塞情况! 下载地址:http://pagetest.wiki.sourceforge.net/ 阅读全文
posted @ 2008-12-04 09:27 Bateau.zhou 阅读(220) 评论(0) 推荐(0) 编辑