<?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>Thaimeo&#039;s blog &#187; get ip</title>
	<atom:link href="http://thaimeo.info/blog/tag/get-ip/feed/" rel="self" type="application/rss+xml" />
	<link>http://thaimeo.info/blog</link>
	<description>Do what you love, love what you do</description>
	<lastBuildDate>Fri, 03 Feb 2012 15:30:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP script to Find out IP address</title>
		<link>http://thaimeo.info/blog/2009/07/php-script-to-find-out-ip-address/</link>
		<comments>http://thaimeo.info/blog/2009/07/php-script-to-find-out-ip-address/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 10:19:30 +0000</pubDate>
		<dc:creator>casinoenlignehu</dc:creator>
				<category><![CDATA[Career]]></category>
		<category><![CDATA[get ip]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://thaimeo.info/blog/?p=798</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: absolute;
top: 60%;
left: 70px;
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;

padding-bottom:2px;
}


#bottomcontainerBox {
height: 30px;
width:50%;
padding-top:1px;
}

#bottomcontainerBox .buttons {
float:left;
height: 30px;
margin:4px 4px 4px 4px;
}

</style>
We can get the IP address of any visitor by using PHP. Finding the IP address is very important requirement for many scripts where we store the members or visitors details. For security reason we can store IP address of &#8230; <a href="http://thaimeo.info/blog/2009/07/php-script-to-find-out-ip-address/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: absolute;
top: 60%;
left: 70px;
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;

padding-bottom:2px;
}


#bottomcontainerBox {
height: 30px;
width:50%;
padding-top:1px;
}

#bottomcontainerBox .buttons {
float:left;
height: 30px;
margin:4px 4px 4px 4px;
}

</style>
<p>We can get the IP address of any visitor by using PHP. Finding the IP address is very important requirement for many scripts where we store the members or visitors details. For security reason we can store IP address of our visitors who are doing any purchases or recording the geographical location of the visitor can be done this way. Some time based on the IP address we can <a href="http://www.plus2net.com/php_tutorial/php_redirect.php">redirect the browser</a> to different areas of the site. There are many applications using this and here is the PHP code to know the IP address of any visitor to the site.</p>
<h3>$ip=@$REMOTE_ADDR;<br />
echo &#8220;&lt;b&gt;IP Address= $ip&lt;/b&gt;&#8221;;</h3>
<p>The above code will display this <strong>IP address= 123.16.236.148 </strong></p>
<p><strong>IP address if the register_global is off</strong><br />
If at php.ini if <a href="http://www.plus2net.com/php_tutorial/register-globals.php">register_global is set to Off</a> then we have to change the script a bit to get the address. Here it is</p>
<h3>$ip=$_SERVER['REMOTE_ADDR'];</h3>
<p>bonus:</p>
<p>&lt;?php<br />
header(&#8220;X-LIGHTTPD-KBytes-per-second: 50&#8243;);<br />
header(&#8220;X-Sendfile: /path/to/file&#8221;);<br />
?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://thaimeo.info/blog/2009/07/php-script-to-find-out-ip-address/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

