Hello.

Interested in the question, how can I determine the date of registration of the domain?

Developments:

$url ='google.ru'; $content = file_get_contents('http://www.reg.ru/whois/?dname='.$url); preg_match('/<td style="width: 170px;">.*<td style="width: 170px;">.*<td style="width: 170px;">.*<td style="width: 170px;">.*<td style="width: 170px;">.*<td style="width: 170px;">.*<td style="width: 170px;">.*<td style="width: 170px;">.*<td>(.*)<|Creation Date:(.*)\n|Domain Create Date:(.*) UTC/Uis', $content, $date)); ... 

Those. if the zone is a .ru domain, then the registrar issues one content (for example, it’s next to the registration date that it says “Registration Date:”), if in .com, then another (note: “Created on ....... ......:"), if in . com.ua , then there is also another (note: "created:"). In general, it turns out that the zones differ all the time, and this also happens ( http://www.reg.ru/whois/?dname=yandex.com ) - i.e. Fuck knows when registered domain.

Please help!

    2 answers 2

    http://www.phpwhois.org/ If you really want to reinvent your bike, look inside whois.parser.php, whois.main.php, etc.

      The same reg.ru refers to safenames.net . on the link: http://safenames.net/DomainNames/WhoisSearch.aspx info: domain: YANDEX.RU .... created: 1997.09.23 So everything depends on the issue of the site. Read about the WHOIS protocol http://ru.wikipedia.org/wiki/WHOIS By the way, here is a more standardized issue: http://www.ripn.net/nic/whois/index.html