I have to check the site domain name, how to limit your search to only the domain name only? in this case I am using wordpress. My website: wtool [dot] in. Thanks in advance and if anyone can solve it I will give in return a domain name.
You mean, like if the entered text is example.com/index.php?id=... It should only consider example.com ? In that case pass the value to parse_url() For example: $data = parse_url('http://example.com/index.php?id=10'); echo $data['host']; PHP:
I mean not so, but this form only for domain names, not the other eg php fan, google com acc, etc. but thanks for answer my question