<?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 on: Get Domain &amp; Subdomain from URL</title>
	<atom:link href="http://programanddesign.com/php/get-domain-subdomain-from-url/feed/" rel="self" type="application/rss+xml" />
	<link>http://programanddesign.com/php/get-domain-subdomain-from-url/</link>
	<description>Tips, tricks, tutorials, and tools on programming &#38; web design</description>
	<lastBuildDate>Sun, 18 Jul 2010 06:22:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Mark</title>
		<link>http://programanddesign.com/php/get-domain-subdomain-from-url/comment-page-1/#comment-216</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 24 Jun 2009 19:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://programanddesign.com/?p=245#comment-216</guid>
		<description>OMG, a legitamate comment! I didn&#039;t know about parse_url, but with the above address, it gives:

Array
(
    [scheme] =&gt; http
    [host] =&gt; www.sub.domain.com
    [path] =&gt; /page
)

No &quot;sub&quot; or &quot;domain.com&quot; which is what I was after when I wrote that. If your site uses addresses like username.domain.com or something, this can be helpful to have.

Thanks for the tip though :)</description>
		<content:encoded><![CDATA[<p>OMG, a legitamate comment! I didn&#8217;t know about parse_url, but with the above address, it gives:</p>
<p>Array<br />
(<br />
    [scheme] => http<br />
    [host] => <a href="http://www.sub.domain.com" rel="nofollow">http://www.sub.domain.com</a><br />
    [path] => /page<br />
)</p>
<p>No &#8220;sub&#8221; or &#8220;domain.com&#8221; which is what I was after when I wrote that. If your site uses addresses like username.domain.com or something, this can be helpful to have.</p>
<p>Thanks for the tip though <img src='http://programanddesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil</title>
		<link>http://programanddesign.com/php/get-domain-subdomain-from-url/comment-page-1/#comment-215</link>
		<dc:creator>Emil</dc:creator>
		<pubDate>Wed, 24 Jun 2009 00:03:56 +0000</pubDate>
		<guid isPermaLink="false">http://programanddesign.com/?p=245#comment-215</guid>
		<description>It can also be done using parse_url(). :)</description>
		<content:encoded><![CDATA[<p>It can also be done using parse_url(). <img src='http://programanddesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
