dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
share rss forum feed


jayco437
Premium
join:2001-08-11
Lincoln, NE

2 edits
reply to Jafo232

Re: PHP: Get TLD from URL

Not quite the PHP expert myself, but wouldn't something like this work just fine: »us.php.net/function.parse-url

Edit: Nevermind, just saw the actual code sample that was posted, and it used parse_url. My bad. I was looking at the question and the replies using regex and I know Python and Ruby both have tools to manage urls and uris, figured PHP should have one too.