republican-creole
site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
Posting?
Post a:
Post a:
Links: ·How To Get Noticed ·Web Monks FAQ ·Webhosting FAQ ·Posting Code ·How To Post ·Webhosting forum
AuthorAll Replies


JAAulde
Web Developer
Premium,MVM
join:2001-05-09
Williamsport, MD
kudos:3

reply to Jafo232

Re: PHP: Get TLD from URL

said by Jafo232:

said by JAAulde:

Code and output: »codepad.org/LSQ1VyyL

Edit: this could be done with a regex, but URLs can vary so widely that I'd rather take a few steps and use built in functions where possible. I think this is more reliable in this case.
I tried that code and the output was:

"com"
Which would be the TLD

Wednesday, 19-Jun 00:44:27 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 13.5 years online © 1999-2013 dslreports.com.
Most commented news this week
Hot Topics