摘要: sudo apt-get install openssh-server 安装sudo /etc/init.d/ssh restart 重启 阅读全文
posted @ 2012-08-28 13:35 xiaozl 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 1.先在system中添加一个ipv6config操作:先在/usr/lib/ lua/luci/controller/admin/system.lua 文件中的index页面中添加entry({"admin", "system", "ipv6config"}, cbi("admin_system/ipv6config"), "ipv6config", 30).dependent=falsesystem.lua页面全部代码--[[LuCI - Lua Configuration Interfac 阅读全文
posted @ 2012-08-15 10:05 xiaozl 阅读(6284) 评论(0) 推荐(0) 编辑
摘要: 1. 效果图2.代码<?phpif($_SERVER['PHP_AUTH_USER']=='user'&&$_SERVER['PHP_AUTH_PW']=='pw'){ echo('验证通过');}else{ header('WWW-Authenticate: Basic realm="user"'); header('HTTP/1.0 401 Unauthorized'); echo 'Unauthorized.';}?&g 阅读全文
posted @ 2012-08-08 10:08 xiaozl 阅读(847) 评论(0) 推荐(0) 编辑
摘要: function getIP(){ static $realip; if (isset($_SERVER)){ if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])){ $realip = $_SERVER["HTTP_X_FORWARDED_FOR"]; } else if (isset($_SERVER["HTTP_CLIENT_IP"])) { $realip = $_SERVER["HTTP_CLIENT_IP"]; } else { ... 阅读全文
posted @ 2012-07-25 10:06 xiaozl 阅读(215) 评论(0) 推荐(0) 编辑
摘要: error_reporting(0);//所有的错误都不用系统定定义的function user_define_error_handle($errorNo, $errorMessage, $errorFile = __FILE__, $errorLine = __LINE__){ echo xml_error(903); write_log($errorNo.' '.$errorMessage.' '.$errorFile.' '.$errorLine); exit();}set_error_handler("user_define_e 阅读全文
posted @ 2012-07-24 11:22 xiaozl 阅读(442) 评论(0) 推荐(0) 编辑
摘要: Options +FollowSymLinksRewriteEngine OnRewriteBase /RewriteRule ^(.*)$ http://www.baidu.com/$1 [L,R=301]把根目录下面的所有访问都定向到百度,注意最后一个$1的值rewriteEngine onrewriteCond %{http_host} ^xueliwuyou.com [NC]rewriteRule ^(.*)$ http://www.xueliwuyou.com/$1 [R=301,L]以上是301跳转的代码,将不带www跳转到带www的;(把xueliwuyou.com换成你的域名) 阅读全文
posted @ 2012-07-23 17:04 xiaozl 阅读(152) 评论(0) 推荐(0) 编辑
摘要: var cookie = {set: function(key, value, days) {document.cookie = 'tomato_' + key + '=' + value + '; expires=' +(new Date(new Date().getTime() + ((days ? days : 14) * 86400000))).toUTCString() + '; path=/';},get: function(key) {var r = ('; ' + document.cookie + 阅读全文
posted @ 2012-07-12 17:13 xiaozl 阅读(168) 评论(0) 推荐(0) 编辑
摘要: MemAdmin是一款可视化的Memcached管理与监控工具,使用PHP开发,体积小,操作简单。主要功能:服务器参数监控:STATS、SETTINGS、ITEMS、SLABS、SIZES实时刷新服务器性能监控:GET、DELETE、INCR、DECR、CAS等常用操作命中率实时监控支持数据遍历,方便对存储内容进行监视支持条件查询,筛选出满足条件的KEY或VALUE数组、JSON等序列化字符反序列显示兼容memcache协议的其他服务,如Tokyo Tyrant (遍历功能除外)支持服务器连接池,多服务器管理切换方便简洁下载地此:http://www.junopen.com/memadmin/ 阅读全文
posted @ 2012-07-06 12:56 xiaozl 阅读(180) 评论(0) 推荐(0) 编辑
摘要: ignore_user_abort();//关掉浏览器,PHP脚本也可以继续执行. set_time_limit(0);// 通过set_time_limit(0)可以让程序无限制的执行下去 $interval=60*30;// 每隔半小时运行 do{ //这里是你要执行的代码 sleep($interval);// 等待5分钟 }while(true); 阅读全文
posted @ 2012-07-05 15:03 xiaozl 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 国有银行 中国银行香港 http://www.bochk.com/ 中国银行 http://www.boc.cn/ 工商银行 http://www.icbc.com.cn 农业银行 http://www.abchina.com/cn/ 建设银行 http://www.ccb.com 交通银行 http://www.bankcomm.com股份制银行招商银行 http://www.cmbchina.com深圳发展银行http://www.sdb.com.cn/浦发银行http://www.spdb.com.cn民生银行http://www.cmbc.com.cn华夏银行http://www.hx 阅读全文
posted @ 2012-07-05 12:23 xiaozl 阅读(928) 评论(0) 推荐(0) 编辑