| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Nov 2005
Posts: 57
|
unusual URLs
Hi, is there a PHP function, class or something that will return the domain name/home page of a given URL? i.e. how could i find out what site "http:/terra.di.fct.unl.pt/docs/php/function.trim.php.htm" ...belongs to. I have used parse_url which works for most urls but not for ones like the above. |
|
|
|
|
|
#4 (permalink) |
|
fucksocks™
Join Date: Jun 2005
Location: in the boosh
Posts: 1,615
|
Couldn't you split the string by the first fullstop i.e PHP Code:
|
|
![]() |