<?
require("whoisclass.php");

$domainName = "cloudheroes.com";

$whois=new Whois;
echo "<br> $domainName <br>";

echo $whois->whoislookup("$domainName");

echo "<br> hello world!";
?>
 public function actionWhois($id)
 {
     $model = $this->loadModel($id);
     $whois = new Whois();
     $this->renderPartial('whois', array('model' => $model, 'data' => $whois->whoislookup($model->ipstr)));
 }
Exemple #3
0
    }
    ?>
                    </div>
                </div>
            </div>
        </div><!-- Main component for a primary marketing message or call to action -->

        <div class="jumbotron">
            <h2>Whois Info - <?php 
    echo $domain;
    ?>
</h2>
            <pre>
<?php 
    $whois = new Whois();
    echo $whois->whoislookup("{$domain}");
    ?>
</pre>
        </div><?php 
}
// End of if  postback is true
?>
    </div><!-- /container -->
    <!-- Bootstrap core JavaScript
================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js" type="text/javascript">
</script><script src="js/bootstrap.min.js" type="text/javascript">
</script><!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
</body>
</html>