摘要:
伪造IP和来源 function getClientIp() { if (!empty($_SERVER["HTTP_CLIENT_IP"])) $ip = $_SERVER["HTTP_CLIENT_IP"]; else if (!empty($_SERVER["HTTP_X_FORWARDED_ 阅读全文
摘要:
1.首先找到php安装目录下的php-cgi.exe 运行起来php-cgi.exe -b 127.0.0.1:9999 -c xxx:/php.ini2.下载windows版本的nginx,下载后,解压到指定的目录后,进行到conf下面编辑nginx.conf,在http{}这个区间的最后(个人喜欢)加入以下代码 autoindex on; # 开启目录浏览 autoindex_exact_size off; #默认为on,显示出文件的确切大小,单位是bytes。 #改为off后,显示出文件的大概大小,单位是kB或者MB或者GB autoindex_localtime... 阅读全文
摘要:
//浏览器检测(function () { window.sys = {}; var ua = navigator.userAgent.toLowerCase(); var s; (s = ua.match(/msie ([\d.]+)/)) ? sys.ie = s[1] : (s = ua.match(/firefox\/([\d.]+)/)) ? sys.firefox = s[1] : (s = ua.match(/chrome\/([\d.]+)/)) ? sys.chrome = s[1] : (s = ua.match(/opera\/.*version\/([\d.]+... 阅读全文