Tijnema wrote:
> On 6/7/07, Brad Fuller <[EMAIL PROTECTED]> wrote:
>> Robin Vickery wrote:
>>> In that case you can't do it just by parsing alone, you need to use
>>> DNS.
>>>
>>> >> function get_domain ($hostname) {
>>> dns_get_record($hostname, DNS_A, $authns, $addt); return
>>> $authns[0][
On 6/7/07, Brad Fuller <[EMAIL PROTECTED]> wrote:
Robin Vickery wrote:
> In that case you can't do it just by parsing alone, you need to use
> DNS.
>
> function get_domain ($hostname) {
> dns_get_record($hostname, DNS_A, $authns, $addt); return
> $authns[0]['host']; }
>
> print get_domain("w
Robin Vickery wrote:
> In that case you can't do it just by parsing alone, you need to use
> DNS.
>
> function get_domain ($hostname) {
> dns_get_record($hostname, DNS_A, $authns, $addt); return
> $authns[0]['host']; }
>
> print get_domain("www.google.com") . "\n"; print
> get_domain("googl
On 6/7/07, Robin Vickery <[EMAIL PROTECTED]> wrote:
On 06/06/07, Brad Fuller <[EMAIL PROTECTED]> wrote:
> Daniel Brown wrote:
> > On 6/6/07, Brad Fuller <[EMAIL PROTECTED]> wrote:
> >>
> >> I need to strip out a domain name from a URL, and ignore subdomains
> >> (like www)
> >>
> >> I can use par
On 06/06/07, Brad Fuller <[EMAIL PROTECTED]> wrote:
Daniel Brown wrote:
> On 6/6/07, Brad Fuller <[EMAIL PROTECTED]> wrote:
>>
>> I need to strip out a domain name from a URL, and ignore subdomains
>> (like www)
>>
>> I can use parse_url to get the hostname. And my first thought was to
>> take th
> From: Brad Fuller [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 06, 2007 5:44 PM
> Subject: [PHP] Parse domain from URL
>
> Hey guys,
>
> I'm faced with an interesting problem, and wondering if there's an easy
> solution.
>
> I need to strip out a domain name from a URL, and ignore subdom
Daniel Brown wrote:
> On 6/6/07, Brad Fuller <[EMAIL PROTECTED]> wrote:
>> Hey guys,
>>
>> I'm faced with an interesting problem, and wondering if there's an
>> easy solution.
>>
>> I need to strip out a domain name from a URL, and ignore subdomains
>> (like www)
>>
>> I can use parse_url to ge
On 6/6/07, Brad Fuller <[EMAIL PROTECTED]> wrote:
Hey guys,
I'm faced with an interesting problem, and wondering if there's an easy
solution.
I need to strip out a domain name from a URL, and ignore subdomains (like
www)
I can use parse_url to get the hostname. And my first thought was to take
On Wed, 2007-06-06 at 11:43 -0400, Brad Fuller wrote:
> Hey guys,
>
> I'm faced with an interesting problem, and wondering if there's an easy
> solution.
>
> I need to strip out a domain name from a URL, and ignore subdomains (like
> www)
>
> I can use parse_url to get the hostname. And my first
9 matches
Mail list logo