main.whois renamed to whois.main.php
This commit is contained in:
parent
9ac681b7ad
commit
616f0364e1
4 changed files with 26 additions and 26 deletions
|
@ -32,7 +32,7 @@ Example usage
|
|||
|
||||
(see example.php)
|
||||
|
||||
include("main.whois");
|
||||
include("whois.main.php");
|
||||
|
||||
$whois = new Whois("example.com");
|
||||
$result = $whois->Lookup();
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#!/usr/local/bin/php -n
|
||||
<?php
|
||||
include("main.whois");
|
||||
include('whois.main.php');
|
||||
|
||||
if (isset($argv[1]))
|
||||
$domain=$argv[1];
|
||||
else
|
||||
$domain = "example.com";
|
||||
$domain = 'example.com';
|
||||
|
||||
$whois = new Whois($domain);
|
||||
$result = $whois->Lookup();
|
||||
|
|
46
example.php
46
example.php
|
@ -1,23 +1,23 @@
|
|||
<?php
|
||||
|
||||
// $Id$
|
||||
|
||||
include("main.whois");
|
||||
|
||||
$domain = "example.com";
|
||||
if(isset($_REQUEST['domain'])) {
|
||||
$domain = $_REQUEST['domain'];
|
||||
}
|
||||
$whois = new Whois($domain);
|
||||
$result = $whois->Lookup();
|
||||
|
||||
echo "<form method=\"post\" action=\"example.php\">";
|
||||
echo "<input name=\"domain\" value=\"".$domain."\"/>";
|
||||
echo "<input type=\"submit\"/>";
|
||||
echo "</form>";
|
||||
|
||||
echo "<pre>";
|
||||
print_r($result);
|
||||
echo "</pre>";
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
// $Id$
|
||||
|
||||
include('whois.main.php');
|
||||
|
||||
$domain = 'example.com';
|
||||
if(isset($_REQUEST['domain'])) {
|
||||
$domain = $_REQUEST['domain'];
|
||||
}
|
||||
$whois = new Whois($domain);
|
||||
$result = $whois->Lookup();
|
||||
|
||||
echo "<form method=\"post\" action=\"example.php\">";
|
||||
echo "<input name=\"domain\" value=\"".$domain."\"/>";
|
||||
echo "<input type=\"submit\"/>";
|
||||
echo "</form>";
|
||||
|
||||
echo "<pre>";
|
||||
print_r($result);
|
||||
echo "</pre>";
|
||||
|
||||
?>
|
||||
|
|
0
main.whois → src/whois.main.php
Normal file → Executable file
0
main.whois → src/whois.main.php
Normal file → Executable file
Loading…
Reference in a new issue