PHP preg_match hostname and domain from FQDN

On February 11, 2010, in How-to, Scripting, by Cubert aka (Cube Dweller)

How to get the hostname and the domain name from FQDN in PHP

This sound easy right? So easy that you would think it would be all over the internet as an example on how to parse host names from domain names. Wrong…. I spent a hour one day looking everywhere and all I found was parsing a URL. Well my needs go deeper I need to do a Continue reading

Tagged with: