I'm trying to make a whois check script.
User can submit some domain address and then get a message if it's available or not.
$_POST['url']
is the submitted value by user.
How do I know if this variable is a domain name address?
It should give true
for domains like:
http://google.com
www.google.com
http://www.google.com
google.com
Same for javascript (I'm using ajax-validation also)?