Reputation: 8091
is there a script in php to check if a site exists in the world wide web?
Upvotes: 0
Views: 660
Reputation: 23263
Whilst firing off an HTTP request will tell you if a site exists, it doesn't tell you whether the domain has been registered but is not currently in use. If this is something that you'd need to be able to do, you need to use a WHOIS service to check whether the domain is registered or not.
Upvotes: 0
Reputation: 354386
You can just try to issue an HTTP request and see if something comes back.
Upvotes: 1