PHP CLI example
This commit is contained in:
parent
99f4456b92
commit
3edd344a8f
14
cli_example.php
Executable file
14
cli_example.php
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/local/bin/php -n
|
||||
<?php
|
||||
include("main.whois");
|
||||
|
||||
if (isset($argv[1]))
|
||||
$domain=$argv[1];
|
||||
else
|
||||
$domain = "example.com";
|
||||
|
||||
$whois = new Whois($domain);
|
||||
$result = $whois->Lookup();
|
||||
|
||||
print_r($result);
|
||||
?>
|
Loading…
Reference in a new issue