Solved

is there a fucntion to check if a domain is registered

Posted on 2007-12-06
3
626 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 30

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses four methods for overlaying images in a container on a web page
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 create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now