PHP script to find domain name age

php

Solution

Many domain registrars offer an API that can be queried for domain name lookups (though usually the API is offered only to resellers/affiliates). These API's are language neutral and so can be used by any programming/scripting language, including PHP.

Another option would be to do a domain lookup against a registrar's whois web interface and scrape the result. This isn't recommended though - mostregistrars implement CAPTCHAs to prevent this type of behavior.

Here's a small list of registrars that offer APIs:

- http://opensrs.com/

- http://www.resellerclub.com/features/api/

- http://www.dynadot.com/domain/api.html

- https://joker.com/faq/category/39/22-dmapi.html

- http://www.domainpeople.com/reseller/partner-direct-api.html

Problem

I am trying to write a script (in PHP) that find a domain age (creation date and maybe if possible, last update and expiration date as well). I want the script to return something like: 2009,2009,2010 if creation date is 2009, update date is 2009, and expiration is 2010 (an array) help? (This is NOT a homework question so please provide as much help as possible) If you need more information to explain the problem please write a comment and I will be glad to provide more information

Original source