`
kaindy7633
  • 浏览: 78005 次
  • 性别: Icon_minigender_1
  • 来自: 绵阳
社区版块
存档分类
最新评论
文章列表
可以讲规则写到一个文件里,比如: #vi iptables.sh iptables -A INPUT -i lo -j ACCEPT iptables -A INPUT -p tcp --dport 80 -j ACCEPT iptables -A INPUT -p tcp --dport 22 -j ACCEPT iptables -A INPUT -p tcp --dport 873 -j ACCEPT iptables -A INPUT -p tcp --dport 139 -j ACCEPT iptables -P INPUT DROP   然后执行: servi ...
这个问题困扰我很久,因为CSS不是很熟悉嘛,后来度娘了一下,发现resize这个东东。 直接在textarea的CSS里添加resize:none 就可以了,火狐里测试通过,IE还没测试。。
代码如下:   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html xmlns = "http://www.w3.org/1999/xhtml" > < head > < meta http-equiv = "Conten ...
商家网址站终于完成了,网址:http://www.57sj.net,基本上主体功能全部完成,界面有待于改善,今天为了测试效果,特别在网吧的一台主机上测试了上线效果。   网吧主机是windows2003的系统,没有特别的分别安装WAMP环境,直接用开发环境appserv测试了,因为计划在下个月直接上线一台Linux主机。下面说明下配置虚拟主机的过程。 进入Appsev安装目录,我的是D:\AppServ\Apache2.2\conf,找到httpd.conf,这个是Apache的配置文件,打开后,找到     # Virtual hosts     #Include conf/extra ...
网上搜刮的一个根据ip获取用户地址的php代码,让人欣喜的是他调用的腾讯的ip数据库而非普通的实用本地数据库。有点意思。 <?php function get_ip_place(){ $ip=file_get_contents("http://fw.qq.com/ipaddress"); $ip=str_replace('"',' ',$ip); $ip2=explode("(",$ip); $a=substr($ip2[1],0,-2); $b=explode(",",$a); return $b; ...
$encode = mb_detect_encoding($a[0], array("ASCII","GB2312","GBK","UTF-8"));
function  arr_split_zh( $tempaddtext ){      $tempaddtext  = iconv( "UTF-8" ,  "gb2312" ,  $tempaddtext );       $cind  = 0;       $arr_cont = array ();          for ( $i =0; $i < strlen ( $tempaddtext ); $i ++)       ...
使用$.get方法发送AJAX请求的时候,我们常常使用eval()方法来处理返回的数据,如下:   function quitlogin(id){     $.get('User/quitlogin',{'uid':id},function(data){         var p = eval("("+data+")");        //将数据转换为JSON对象格式         if(p.data == id+"_quit_true"){             top.document.location.relo ...
top.document.location.reload();   这句代码就是刷新整个页面,top指的就是最顶级窗口,也就是第一个打开的窗口。
PHPMailer 类综合应用 PHPMailer 是一个专门用于 语言的邮件发送类,功能十分地强大,丰富了 PHP 本身单一的 mail() 函数。支持 SMTP 等甚至于附件。 PHPMailer 遵守 LGPL 授权,可以免费下载,当前版本是PHPMailer v2.0.0 rc2 更新于2007 年11月16日。 注: 下载时有后缀分别为 .tar.gz 和 .zip 之分,其实它们包含的文件都是一样的,只是压缩格式不同,.tar.gz 经过了双重压缩,文件更小罢了,WinRAR 软件能正确地解压这两种格式。 ◆使用: ☆前注: 解 压后,文件包中会 ...
outline是css3的一个属性,用的很少。 声明,这是个不能兼容的css属性,在ie6、ie7、遨游浏览器都不兼容。 outline控制的到底是什么呢? 当 聚焦a标签的时候,在a标签的区域周围会有一个虚线的框,这个框不同于border的是,它是 ...
snoopy采集phpchina示例 <?php //采集phpchina set_time_limit(0); require_once("Snoopy.class.php"); $snoopy=new Snoopy(); //登陆论坛 $submit_url = "http://www.phpchina.com/bbs/logging.php?action=lo gin"; $submit_vars["loginmode"] = "normal"; $submit_vars[" ...
获取指定url内容 PHP代码 <?       $url = "http://www.taoav.com";       include("snoopy.php");       $snoopy = new Snoopy;       $snoopy->fetch($url); //获取所有内容       echo $snoopy->results; //显示结果       //可选以下       $snoopy->fetchtext //获取文本内容(去掉html代码)       $ ...
<?php /************************************************* Snoopy - the PHP net client Author: Monte Ohrt <monte@ispi.net > Copyright (c): 1999-2000 ispi, all rights reserved Version: 1.01  * This library is free software; you can redistribute it and/or  * modify it under the terms o ...
某项目有功能需求为在OA里检测用户服务器的运行状态,服务器均为内网,不能直接通过检测IP地址来实现,因为每个内网服务器都有RemotePcAnyWhere这个服务的存在,所以使用下面的代码,实现检测此服务的状态是否正常. 这里使用了PHP里的curl函数,具体可参考手册   <?php $str_url = 'http://192.168.206.129:2000'; $data = "queuename={$q}&queuedata={$data}"; $ch_curl = curl_init (); curl_setopt ( $ch_curl ...
Global site tag (gtag.js) - Google Analytics