Domain name search

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

Domain name search

Post by vinoth »

hi all

I need code for to check the availability of Domain names in PHP

Provide me an possible way and suggestions regarding this
Last edited by vinoth on Wed Jul 02, 2008 3:58 am, edited 2 times in total.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

Post by vinoth »

ya I got the code

from PHP Whois script Classes

Its working fine, thanks for your suggestion
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

Post by vinoth »

hi all

the PHP Whois script Classes is work fine for generic domains like [.net .com .org] but it can't work for country code domains like co.in, co.za...... Is there any way to got that

Provide any way to got this or some suggestion needed to achieve this
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

I'm not even sure how "The PHP Whois script Classes" work. I'm also not sure how it would omit certain domains.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Match the request string against the "generic domains" it does handle.
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

Post by vinoth »

hi feyd

I didn't get you..
Generic domains is differ Country Domains
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post by VladSun »

Choose one :) :

http://www.developertutorials.com/scripts/3/4/

I think cWhois would be a good choice (at first look).

PS: Ooops, it costs 29$, sorry. Choose another :)
Last edited by VladSun on Tue Aug 21, 2007 8:34 am, edited 1 time in total.
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

There are many domains that are registered but have no website adn hence no IP.
How are you checking against such domains ?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The Whois script you have works for "generic domains." So you can only look at those types of domains until you figure out how to look for country specific domains. Therefore you filter the domains you will look for through the script to just the domains it can handle at this time.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post by VladSun »

What about this:

http://pwhois.org/ris.who
There are 10 types of people in this world, those who understand binary and those who don't
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

Post by vinoth »

hi all

Now I check the domain availability by using file exists condition

Hope it works fine
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

vinoth wrote:Now I check the domain availability by using file exists condition
A domain can be occupied, but be completely empty of files. You sure that'll work? There are plenty of unused domains. They like to think of it as internet real estate.
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

Post by vinoth »

hi superdezign

after the domain name got registered..
How it will be no file
Anyway it just contain the index file or the domain name hosters will provide the default files

So it won't cause any problem I think
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

You should map the domain to some host (server IP) for files like index.html etc to be visible.

If you just buy a domain name and dont host it, there wouldnt be any website associated with it.
Mapping a domain name to a host server is done using DNS.
Post Reply