<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>华水 &#187; IP</title>
	<atom:link href="http://huashui.org/tag/ip/feed" rel="self" type="application/rss+xml" />
	<link>http://huashui.org</link>
	<description>总是到下雨才想到雨伞，总是到拿雨伞时才发现不见了。</description>
	<lastBuildDate>Thu, 29 Jul 2010 09:53:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Linux中修改ip的办法</title>
		<link>http://huashui.org/post/linux%e4%b8%ad%e4%bf%ae%e6%94%b9ip%e7%9a%84%e5%8a%9e%e6%b3%95.html</link>
		<comments>http://huashui.org/post/linux%e4%b8%ad%e4%bf%ae%e6%94%b9ip%e7%9a%84%e5%8a%9e%e6%b3%95.html#comments</comments>
		<pubDate>Fri, 05 Mar 2010 07:25:37 +0000</pubDate>
		<dc:creator>Huashui</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[IP]]></category>

		<guid isPermaLink="false">http://huashui.org/?p=393</guid>
		<description><![CDATA[切换到root账户下 切换到/etc/sysconfig/network-scripts/目录下； 编辑网卡编码：vi ifcfg-ethX X为第X-1个网卡。 DEVICE=ethX 设备名称 ONBOOT=yes 计算机启动时是否激活网卡 BOOTPROTO=static 获取ip地址的方式， IPADDR=192.168.2.111 ip地址 NETMASK=255.255.255.0 子网掩码 GATEWAY=192.168.0.1 网关 重启网络 /etc/init.d/network restart Related Posts2010-03-02 -- linux下的文件的压缩和解压缩2010-02-08 -- PHP获取客户端IP的几种方法2009-10-13 -- MySQL出现No space left on device导致的无法启动2009-01-12 -- Ubuntu试用记]]></description>
		<wfw:commentRss>http://huashui.org/post/linux%e4%b8%ad%e4%bf%ae%e6%94%b9ip%e7%9a%84%e5%8a%9e%e6%b3%95.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP获取客户端IP的几种方法</title>
		<link>http://huashui.org/post/php-get-client-ip.html</link>
		<comments>http://huashui.org/post/php-get-client-ip.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 05:38:56 +0000</pubDate>
		<dc:creator>Huashui</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[IP]]></category>

		<guid isPermaLink="false">http://huashui.org/?p=252</guid>
		<description><![CDATA[PHP获取客户端IP有几个函数，下面介绍下三种常用的写法。 第一种： &#60;?php function GetIP&#40;&#41; &#123; //获取IP if &#40;$_SERVER&#91;&#34;HTTP_X_FORWARDED_FOR&#34;&#93;&#41; $ip = $_SERVER&#91;&#34;HTTP_X_FORWARDED_FOR&#34;&#93;; else if &#40;$_SERVER&#91;&#34;HTTP_CLIENT_IP&#34;&#93;&#41; $ip = $_SERVER&#91;&#34;HTTP_CLIENT_IP&#34;&#93;; else if &#40;$_SERVER&#91;&#34;REMOTE_ADDR&#34;&#93;&#41; $ip = $_SERVER&#91;&#34;REMOTE_ADDR&#34;&#93;; else if &#40;getenv&#40;&#34;HTTP_X_FORWARDED_FOR&#34;&#41;&#41; $ip = getenv&#40;&#34;HTTP_X_FORWARDED_FOR&#34;&#41;; else if &#40;getenv&#40;&#34;HTTP_CLIENT_IP&#34;&#41;&#41; $ip = getenv&#40;&#34;HTTP_CLIENT_IP&#34;&#41;; else if &#40;getenv&#40;&#34;REMOTE_ADDR&#34;&#41;&#41; $ip = getenv&#40;&#34;REMOTE_ADDR&#34;&#41;; else $ip = &#34;Unknown&#34;; return $ip; &#125; ?&#62; 第二种： function getip&#40;&#41; &#123; if [...]]]></description>
		<wfw:commentRss>http://huashui.org/post/php-get-client-ip.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
