RE: [PHP] whois Domain??
| From: | Wickham, Larry | Date: | Tue, 09 Jan 2007 23:22:35 +0000 |
| Subject: | RE: [PHP] whois Domain?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246815@lists.php.net to get a copy of this message | ||
If you are running under linux you can use one of the many exec functions in php to execute the
whois command.
<?php
$command = "whois domain.com";
$output = shell_exec($command);
// Insert code to parse results here
echo "<pre>$output</pre>";
?>
Larry
-----Original Message-----
From: Marcelo Ferrufino Murillo [mailto:marcefm@gmail.com]
Sent: Tuesday, January 09, 2007 4:20 PM
To: php-general@lists.php.net
Subject: [PHP] whois Domain??
Hi ereryone I need to do an script into a web page to know if a domain is
registered so I don´t know how to send a query to "internic" or what I have
to do to get this.
Thank you, I hope your help.