Hi guys,
After a lot of messing around with parse_url -- i found a publicsuffix.org which offers a list of all the top level and second level domain names.
I'm trying to make some code that will return "phpbuilder" when given phpbuilder.com or phpbuilder.co.uk or phpbuilder.com/page/page
So i'm using parse_url then i'm going to check the tld list on publicsuffix.org to see to get the site name.
I'm going to conver the list into a mysql database:
#ID
TLD
What would be the best way to search the database when i am trying to do checks like this?
Find "phpbuilder.com" and see if ".com" is in the database???
Thanks for any help.