PHP CLI example

This commit is contained in:
sparc 2005-07-16 11:19:30 +00:00
parent 99f4456b92
commit 3edd344a8f

14
cli_example.php Executable file
View 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);
?>