Page 1 of 1

find out website availability without server code

Posted: Wed Feb 02, 2011 4:30 am
by dentrite
hi all, i am having a blog which does not supports codes on server, means i can put no code on the page, i am starting a domain registration business and for it i need to check website availability through ajax or javascript, if site is available it should show "call me, site is available", else "try something else". pls if somebody to crack to write some code for me, i would really be thankful. thanks in advance

Re: find out website availability without server code

Posted: Wed Feb 02, 2011 5:26 am
by social_experiment
The Manual wrote:gethostbyname — Get the IP address corresponding to a given Internet host name
You could send a request to see if an ip address is returned for the given domain name, if it returns an ip you know it exists, and false is returned on failure.
Hth

Re: find out website availability without server code

Posted: Sat Apr 02, 2011 5:20 am
by dentrite
can somebody provide full implementation of the above idea?