摘要:服务器上的一些统计数据: 1)统计80端口连接数 netstat -nat|grep -i “80”|wc -l 2)统计httpd协议连接数 ps -ef|grep httpd|wc -l 3)、统计已连接上的,状态为“established netstat -na|grep ESTABLISHE
阅读全文
摘要:<html> <body> <div style="width:980px;height:400px;margin:0 auto;border:1px solid red"> <div style="height:400px; width:200px; float:left; ">22</div>
阅读全文
摘要:_____________获取淘宝标题 <?php header("Content-type: text/html; charset=utf-8"); $url = 'https://item.taobao.com/item.htm?spm=a219r.lm5704.14.15.Cb4K9H&id=
阅读全文
摘要:/** * 红包 * @param n * @param money 单位:分 * @return **/ public static double[] redPacket(int n, double money) { // 红包结果 double[] result = new double[n];
阅读全文
摘要:$filename = ecs_iconv(EC_CHARSET, 'GB2312', $_LANG['guest_statistics']);header("Content-type: application/vnd.ms-excel; charset=utf-8");header("Conten
阅读全文
摘要:/* 检查文件类型 */if ($_FILES['upfile_flash']['type'] != "application/x-shockwave-flash"){ $link[] = array('text' => $_LANG['go_back'], 'href' => 'javascrip
阅读全文
摘要:<script> //计时3秒后自动跳转到登录页 var i = 3; var time_out; time_out = setInterval("time()", 800); function time() { if(i == 0){ window.location.href = "/user/l
阅读全文
摘要:<script type="text/javascript"> var jq = jQuery.noConflict(); jq(document).ready(function () { jq(".btn-inquire").click(function () { jq(".btn-inquire
阅读全文
摘要:function array_sort($arr, $field, $by = SORT_ASC) { foreach ($arr as $v) { $r[] = $v[$field]; } array_multisort($r, $by, $arr); return $arr; } functio
阅读全文
摘要:function db_create_in($item_list, $field_name = ''){ if (empty($item_list)) { return $field_name . " IN ('') "; } else { if (!is_array($item_list)) {
阅读全文
摘要:PHP code ? 1 2 3 4 5 6 RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^so\.ccvnn\.com$ [NC] RewriteCond %{REQUEST_URI} !^/web2/ RewriteRule ^
阅读全文
摘要:__________________________ $list = array(array());//昨日时间$yesterday = intval(strtotime(date("Y-m-d")))-86400;//本周时间$week = mktime(0, 0 , 0,date("m"),da
阅读全文
摘要:使用不同账户,执行执行脚本时候sudo经常会碰到 sudo: sorry, you must have a tty to run sudo这个情况,其实修改一下sudo的配置就好了 vi /etc/sudoers (最好用visudo命令) 注释掉 Default requiretty 一行 #De
阅读全文
摘要:——————————微信公从号授权 $code = input('code'); if($code != ''){ $url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=".config('appid')."&secret="
阅读全文
摘要:<?php/** * Tiny - A PHP Framework For Web Artisans * @author Tiny <tinylofty@gmail.com> * @copyright Copyright(c) 2010-2014 http://www.tinyrise.com Al
阅读全文
摘要:VMware Workstation 12序列号: 5A02H-AU243-TZJ49-GTC7K-3C61N
阅读全文
摘要:修改快捷键 appearance & behavior keymap Quick Definition 查看方法ctrl+shift+i comment with line comment ctrl+q 注释 comment with block comment ctrl+shift+q 注释 cl
阅读全文
摘要:_____________________设置IP vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=00:0: TYPE=Tthernet UUID=486cb8fd-7e13-4fce-80c3-ccffc76d00a
阅读全文
摘要:_____________________________________________________设权限 sudo chmod -R 777 admin _____________________________________________________定时crontab -e */1
阅读全文
摘要:BEGIN LICENSE Andrew Weber Single User License EA7E-855605 813A03DD 5E4AD9E6 6C0EEB94 BC99798F 942194A6 02396E98 E62C9979 4BB979FE 91424C9D A45400BF F
阅读全文
摘要:Mysql 源码安装操作: 1. 创建用户 # groupadd mysql # useradd -g -r mysql mysql 2. 解压缩tar包 # tar xf mysql-5.6.25.tar.gz # cd mysql-5.6.25 3. 编译安装 # cmake . -DCMAKE
阅读全文
摘要:<!-- saved from url=(0056)http://www.ecmos.com/index.php?app=my_money&act=recharge --> <html><head><meta http-equiv="Content-Type" content="text/html;
阅读全文
摘要:<tr> <td width="10%" class="tableleft">广告类别</td> <td> <select name="type" onchange="_ad()" id="type"> <option value="0">图片广告</option> <option value="1
阅读全文
摘要:// Array representing a possible record set returned from a database function get_url() { $sys_protocal = isset($_SERVER['SERVER_PORT']) && $_SERVER['
阅读全文
摘要:Axure Axure http://dummyimage.com/350x200/200/fffhttp://c7sky.com/the-top-10-placeholder-image-services.htmlhttp://zhanweitu.com/600x100
阅读全文
摘要:<VirtualHost *:80> DocumentRoot "D:\admin\ych_admin\webroot" ServerName ci ServerAlias admin.y.com <Directory "D:\admin\ych_admin\webroot"> Options Fo
阅读全文
摘要:case 62: //联系我们 //index.src = "myabout.php?code=lxwm"; window.open("tencent://message/?uin=95025079&Site=web&Menu=yes", "_blank"); tencent://message/?
阅读全文
摘要:第一步:'URL_MODEL'=>'2',第二步:根路径下建立一个.htaccess,可以通过一些软件比如EditPlus去另存为,windows可能不能直接创建第三步:<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_F
阅读全文
摘要:CREATE TABLE `article` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) DEFAULT '' COMMENT '//文章标题', `tag` varchar(100) DEFAULT '' COMMENT
阅读全文
摘要:function AddWhere($str){ global $where; if ($where) return $where." and $str "; else return $str;} function AddWhere($str,$where='') {// global $where
阅读全文
摘要:———————————————————————————————— <script type="text/javascript"> $(function(){ //全选 $("#CheckedAll").click(function(){ $('[name=items]:checkbox').attr
阅读全文
摘要:function showErr($type,$msg) { $phpmsg = debuginfo(); ob_end_clean(); $host = $_SERVER['HTTP_HOST']; echo <<<EOT <!DOCTYPE html PUBLIC "-//W3C//DTD XH
阅读全文
摘要:CREATE USER 'jame'@'%'; GRANT GRANT OPTION ON *.* TO 'jame'@'%'; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE,
阅读全文
摘要:________________________________________________________创建版本库 c:\svn\bin>svnadmin create c:\app\test _________________________________________________
阅读全文
摘要:————————————————-post-commit.bat @echo on SET REPOS=%1 SET REV=%2 SET DIR="C:\admin\web7" SET PATH=%PATH%; SET SVN="C:\svn\bin\svn.exe" SET WORKING_CO
阅读全文
摘要:_______________________________________________________________查询每月单日数据 SELECT SQL_CALC_FOUND_ROWS date_format(FROM_UNIXTIME(a.dates),'%Y-%m-%d') AS t
阅读全文
摘要:self.location.reload(); —————————————————— 如何实现刷新当前页面呢?借助js你将无所不能。 1,reload 方法,该方法强迫浏览器刷新当前页面。 语法:location.reload([bForceGet]) 参数: bForceGet, 可选参数, 默认
阅读全文
摘要:————————test4.php <html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(fun
阅读全文
摘要:function Getajxa(options) { var settings = jQuery.extend({ src: null, data: "", type: "get", dataType: "html", async: false }, options); options = set
阅读全文