Advertisement
tobitaz

getdomain

Dec 9th, 2013
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1.       <form action="" method="post">
  2. ip:<input name="ip" value="97.74.183.128"><br />
  3. <input type="submit">
  4. </form>
  5. <?php
  6. $ip = $_POST["ip"];
  7.  
  8. if($ip != null)
  9. {
  10. $fi = file_get_contents("http://domains.yougetsignal.com/domains.php?remoteAddress=".$ip);
  11.  
  12.  
  13. $j = json_decode($fi)->domainArray;
  14.  
  15.  
  16. foreach($j as $hu)
  17. {
  18. $fap.=$hu[0]."\n";
  19. }
  20. echo "<textarea cols='100' rows='100'>".$fap."</textarea>";
  21. }
  22. else
  23. {
  24. echo "<textarea cols='100' rows='100'></textarea>";
  25. }
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement