Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 "208.91.199.150 : ".$contents;
  17.  
  18. ?>
  19.  
  20. </body>
  21. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement