11 2012 档案
iptables 防火墙 22 53 80
摘要:01 iptables -F 02 # 允许包从22端口进入 03 iptables -A INPUT -p tcp --dport 22 -j ACCEPT 04 # 允许从22端口进入的包返回 05 iptables -A OUTPUT -p tcp --sport 22 -m state --state ESTABLISHED -j ACCEPT 06 iptables -A OUTPUT -p udp --dport 53 -j ACCEPT 07 iptables -A INPUT -p udp --sport 53 -j ACCEPT 08 #允许本机访问本机 09... 阅读全文
posted @ 2012-11-29 11:06 lsl8966 阅读(146) 评论(0) 推荐(0) 编辑
php 不用通过表单也能创建HTTPpost请求
摘要:function post($postdata,$server){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $server); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 80); curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata); $data = curl_exec($... 阅读全文
posted @ 2012-11-28 20:19 lsl8966 阅读(229) 评论(0) 推荐(0) 编辑
php soap webservice 实例
摘要:step1:修改php.iniextension=php_soap.dllstep2:服务器端代码soapserver.phpclass service{ private $username = ""; private $password = ""; function __construct() { $xml = file_get_contents('php://input'); $p = xml_parser_create(); xml_parse_into_struct($p, $xml, $vals, $ind... 阅读全文
posted @ 2012-11-28 20:06 lsl8966 阅读(399) 评论(0) 推荐(0) 编辑


点击右上角即可分享
微信分享提示