<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Brettic.us</title>
	<atom:link href="http://brettic.us/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://brettic.us</link>
	<description>Web devlopment and life in general</description>
	<lastBuildDate>Wed, 10 Feb 2010 23:57:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Debugging PHP on a Mac with Netbeans by Brett</title>
		<link>http://brettic.us/2009/11/07/developing-php-on-a-mac-with-netbeans/comment-page-1/#comment-636</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Wed, 10 Feb 2010 23:57:51 +0000</pubDate>
		<guid isPermaLink="false">http://brettic.us/?p=202#comment-636</guid>
		<description>Thanks Jay,

Glad it actually came in handy for someone.</description>
		<content:encoded><![CDATA[<p>Thanks Jay,</p>
<p>Glad it actually came in handy for someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Debugging PHP on a Mac with Netbeans by Jay</title>
		<link>http://brettic.us/2009/11/07/developing-php-on-a-mac-with-netbeans/comment-page-1/#comment-635</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Wed, 10 Feb 2010 23:50:57 +0000</pubDate>
		<guid isPermaLink="false">http://brettic.us/?p=202#comment-635</guid>
		<description>Just wanted to thank you for a great explanation from a basic level of the benefits and pros of working with xDebug. I wish I would have learned to use this years ago :)</description>
		<content:encoded><![CDATA[<p>Just wanted to thank you for a great explanation from a basic level of the benefits and pros of working with xDebug. I wish I would have learned to use this years ago <img src='http://brettic.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP: Remote IP + Load Balancer by Brett</title>
		<link>http://brettic.us/free/php-code-igniter-remote-ip-load-balancer/comment-page-1/#comment-408</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Wed, 16 Dec 2009 15:58:14 +0000</pubDate>
		<guid isPermaLink="false">http://brettic.us/?page_id=104#comment-408</guid>
		<description>It depends on the load balancer. Netscaler does more than balance the load, it acts as an http proxy (or any web-specific protocol) for your client connections. It optimizes TCP traffic as to keep the TCP traffic (syn/ack handshakes etc) from taking resources on your Web servers. As such, it makes the connection to your web servers behind it and, thus, $_SERVER[&#039;REMOTE_ADDR&#039;] always returns the ip address of the Netscaler. The Netscaler sends an additional HTTP header (I believe) to indicate where the request initiated. The method above uses this information to get the remote IP. I will note that it will also work when the Web server is not behind a Netscaler because it falls through various optional headers and uses more typical header values as a fallback. 

What we have now is a &quot;standard&quot; load balancer that simply routes the inbound packets (NAT.) The incoming packet source IP is maintained and no special method for getting the remote address is required. Most likely, your load balanced solution will fall into this category. If so, you will not need to change anything.

Finally, this method could be modified to be a &quot;standard&quot; PHP function in a non-codeigniter implementation. &lt;a href=&quot;http://dev.af83.com/php/get-remote-ip-address-in-php-even-when-the-user-is-behind-a-proxy/2007/05/21&quot; rel=&quot;nofollow&quot;&gt;Here is a link to another blog to demonstrate.&lt;/a&gt;

</description>
		<content:encoded><![CDATA[<p>It depends on the load balancer. Netscaler does more than balance the load, it acts as an http proxy (or any web-specific protocol) for your client connections. It optimizes TCP traffic as to keep the TCP traffic (syn/ack handshakes etc) from taking resources on your Web servers. As such, it makes the connection to your web servers behind it and, thus, $_SERVER['REMOTE_ADDR'] always returns the ip address of the Netscaler. The Netscaler sends an additional HTTP header (I believe) to indicate where the request initiated. The method above uses this information to get the remote IP. I will note that it will also work when the Web server is not behind a Netscaler because it falls through various optional headers and uses more typical header values as a fallback. </p>
<p>What we have now is a &#8220;standard&#8221; load balancer that simply routes the inbound packets (NAT.) The incoming packet source IP is maintained and no special method for getting the remote address is required. Most likely, your load balanced solution will fall into this category. If so, you will not need to change anything.</p>
<p>Finally, this method could be modified to be a &#8220;standard&#8221; PHP function in a non-codeigniter implementation. <a href="http://dev.af83.com/php/get-remote-ip-address-in-php-even-when-the-user-is-behind-a-proxy/2007/05/21" rel="nofollow">Here is a link to another blog to demonstrate.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP: Remote IP + Load Balancer by Deepak</title>
		<link>http://brettic.us/free/php-code-igniter-remote-ip-load-balancer/comment-page-1/#comment-407</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Wed, 16 Dec 2009 07:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://brettic.us/?page_id=104#comment-407</guid>
		<description>We have an intranet on LAMP, and planning for a Load Balancing architecture.
We donot have Codeigniter here and we too log the client IP address as of now by using: &quot;$_SERVER[&#039;REMOTE_ADDR&#039;]&quot;. It will be useful if you may throw some light on how we can get still get the Client IP in the LoabBalancer scenario.

Thanks
Joy Deepak</description>
		<content:encoded><![CDATA[<p>We have an intranet on LAMP, and planning for a Load Balancing architecture.<br />
We donot have Codeigniter here and we too log the client IP address as of now by using: &#8220;$_SERVER['REMOTE_ADDR']&#8220;. It will be useful if you may throw some light on how we can get still get the Client IP in the LoabBalancer scenario.</p>
<p>Thanks<br />
Joy Deepak</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP: Just for Newbies? by Anonymous</title>
		<link>http://brettic.us/2008/10/03/php-just-for-newbies/comment-page-1/#comment-5</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-5</guid>
		<description>I look forward to reading other articles you have. Which is Informative and creative. 


Thanks!
</description>
		<content:encoded><![CDATA[<p>I look forward to reading other articles you have. Which is Informative and creative. </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby on Rails is cool by bretticus</title>
		<link>http://brettic.us/2006/08/12/ruby-on-rails-is-cool/comment-page-1/#comment-3</link>
		<dc:creator>bretticus</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-3</guid>
		<description>I have yet to follow up on ROR. I played with it one day and later found I have NO TIME apparently to do more research. On a side note, I do know the labs department of the company I work for is using ROR to &quot;tack up&quot; concept Websites quickly. The developers then do the real work in java. :) Also, ROR had (has?) a &lt;a href=&quot;http://developers.slashdot.org/article.pl?sid=06/08/10/0213259&quot; target=&quot;_blank&quot;&gt;major security flaw&lt;/a&gt;. It was dealt with quickly (howbeit...strangely.) All in all, I still need to play with ROR to see if I could ever consider using it in a production environment (I&#039;ll stick with tried-and-true PHP for now...yes, yes...I know PHP has had a security issue or two in its time as well.)</description>
		<content:encoded><![CDATA[<p>I have yet to follow up on ROR. I played with it one day and later found I have NO TIME apparently to do more research. On a side note, I do know the labs department of the company I work for is using ROR to &#8220;tack up&#8221; concept Websites quickly. The developers then do the real work in java. <img src='http://brettic.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Also, ROR had (has?) a <a href="http://developers.slashdot.org/article.pl?sid=06/08/10/0213259" target="_blank">major security flaw</a>. It was dealt with quickly (howbeit&#8230;strangely.) All in all, I still need to play with ROR to see if I could ever consider using it in a production environment (I&#8217;ll stick with tried-and-true PHP for now&#8230;yes, yes&#8230;I know PHP has had a security issue or two in its time as well.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby on Rails is cool by Anonymous</title>
		<link>http://brettic.us/2006/08/12/ruby-on-rails-is-cool/comment-page-1/#comment-2</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-2</guid>
		<description>This is one frickin sweet website dude.</description>
		<content:encoded><![CDATA[<p>This is one frickin sweet website dude.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stephanie hates my new site by Anonymous</title>
		<link>http://brettic.us/2006/08/12/stephanie-hates-my-new-site/comment-page-1/#comment-1</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-1</guid>
		<description>I think it looks nice, though personalization with a skin would be my vote. Say hi to Steph for me! (this is Alicia)</description>
		<content:encoded><![CDATA[<p>I think it looks nice, though personalization with a skin would be my vote. Say hi to Steph for me! (this is Alicia)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
