[thelist] PHP: getting domain names from a url - being foiled by .co.uk addresses

Anthony Baratta Anthony at Baratta.com
Sat Dec 6 15:04:34 CST 2003

Why not use a regex to get stuff between the // and first single /? Or you 
can walk through the string find the // pair and start looking for the next 
/, everything in between is the domain name.

Anthony Baratta
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."

More information about the thelist mailing list