Get Domain Name Expiration Date (php)

Posted on 2009-05-20
Medium Priority
Last Modified: 2012-05-07
Hi E's, with network function checkdnsrr I can see if the domain exists.
I'd like to know if have any way in php for take the Expiration Date of domains.
If php cant do, do you know any API?

Regards, JC
Question by:Pedro Chagas

Assisted Solution

jericotolentino earned 200 total points
ID: 24437452
Hi JC,

This might not be the most efficient way to do it, but I'd try parsing the output of the shell command whois (on Linux, you might have to install something extra if you're testing on Windows). I've never done anything like it, but it should work.

Accepted Solution

Pedro Chagas earned 0 total points
ID: 24443881
Hi, I discover phpwhois-4.1.3, its a great script, and give all informations about domains, also country domains.
You can take here:http://sourceforge.net/projects/phpwhois/

Regards, JC

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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 …

624 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