Solved

is there a fucntion to check if a domain is registered

Posted on 2007-12-06
3
630 Views
Last Modified: 2008-02-01
i want to check if a domain is registered, can php do this?
0
Comment
Question by:markmchugh
3 Comments
 
LVL 31

Expert Comment

by:Zoppo
ID: 20420454
Hi markmchugh,

you can try to get the IP address using 'gethostbyname' ...

hope that helps,

ZOPPO
0
 
LVL 24

Accepted Solution

by:
glcummins earned 500 total points
ID: 20420534
For the most complete results, you can use your PHP script to access a webpage such as http://www.whois.net/whois_new.cgi?d=zamuta&tld=com (Insert the desired domain in the place of 'zamuta' and 'com'. You can use cUrl or fopen to get the contents of the page. Then parse the results to determine if the domain is registered.

Zoppo's comment will be much easier to use. However, it will return inaccurate results if the domain is registered, but not yet listed in DNS.
0
 
LVL 82

Expert Comment

by:hielo
ID: 20420597
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
$_SERVER Variable question 31 49
show child records separated by commas 12 33
Echo'd values in dropdowns 6 27
Group By Function Required in PDF Output 21 30
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question