BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:19/07/2007: PHP Domain Class
X-WR-CALDESC:On Usenet an often-asked question is how to programmatically determine the &#8220;domain&#8221; of a particular hostname. That is, excluding the components traditionally thought of as subdomains. As an example, groups.google.com and www.google.com both have a domain of google.com.  Invariably, one answer comes back stating that you just need to chop off everything from the front, leaving only the last two components. But then someone will chime in pointing out that groups.google.co.uk would be left as just co.uk that way, when what is really wanted is google.co.uk. And the eventual resolution of the argument will be &#8220;it just can&#8217;t be done&#8221;.  The problem is that there&#8217;s technically no difference between a domain and a subdomain: it&#8217;s simply a matter of convention. Fortunately, this issue is actually quite important to browser programmers, as it&#8217;s a key issue in cookie security: browsers must allow subdomains within a domain to share cookie data, but not allow cookies&#8230;
BEGIN:VJOURNAL
DTSTART:20070817T111754Z
DTEND:20070817T111754Z
URL:http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/07/19/php-domain-class/comments#comment1
SUMMARY:Comment 001
CATEGORIES:
STATUS:NEEDS-ACTION
END:VJOURNAL
BEGIN:VJOURNAL
DTSTART:20070901T202516Z
DTEND:20070901T202516Z
URL:http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/07/19/php-domain-class/comments#comment2
SUMMARY:Comment 002
CATEGORIES:
STATUS:NEEDS-ACTION
END:VJOURNAL
BEGIN:VJOURNAL
DTSTART:20070906T132653Z
DTEND:20070906T132653Z
URL:http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/07/19/php-domain-class/comments#comment3
SUMMARY:Comment 003
CATEGORIES:
STATUS:NEEDS-ACTION
END:VJOURNAL
BEGIN:VJOURNAL
DTSTART:20070921T091009Z
DTEND:20070921T091009Z
URL:http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/07/19/php-domain-class/comments#comment4
SUMMARY:Comment 004
CATEGORIES:
STATUS:NEEDS-ACTION
END:VJOURNAL
BEGIN:VJOURNAL
DTSTART:20071127T024732Z
DTEND:20071127T024732Z
URL:http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/07/19/php-domain-class/comments#comment5
SUMMARY:Comment 005
CATEGORIES:
STATUS:NEEDS-ACTION
END:VJOURNAL
END:VCALENDAR
