Advertisement
Guest User

get.php

a guest
Jan 22nd, 2013
8,116
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None
  1. <html>
  2. <body>
  3.  
  4. <?php
  5.  
  6. $ch = curl_init();
  7.  
  8. curl_setopt($ch, CURLOPT_URL,'http://www.ipchicken.com/');
  9.  
  10. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  11.  
  12. $contents = curl_exec ($ch);
  13.  
  14. curl_close ($ch);
  15.  
  16. echo "Your Server's IP : ".$contents;
  17.  
  18. ?>
  19.  
  20. </body>
  21. </html>
Advertisement
RAW Paste Data Copied
Advertisement