[html4strict] f

Viewer

  1. <?php 
  2. $var = '<?php
  3. // PHP code to obtain country, city,
  4. // continent, etc using IP Address
  5. $ip = \'52.25.109.230\';
  6. // Use JSON encoded string and converts
  7. // it into a PHP variable
  8. $ipdat = @json_decode(file_get_contents(
  9.         "http://www.geoplugin.net/json.gp?ip=" . $ip));
  10. echo \'Country Name: \' . $ipdat->geoplugin_countryName . "\\n";
  11. echo \'City Name: \' . $ipdat->geoplugin_city . "\\n";
  12. echo \'Continent Name: \' . $ipdat->geoplugin_continentName . "\\n";
  13. echo \'Latitude: \' . $ipdat->geoplugin_latitude . "\\n";
  14. echo \'Longitude: \' . $ipdat->geoplugin_longitude . "\\n";
  15. echo \'Currency Symbol: \' . $ipdat->geoplugin_currencySymbol . "\\n";
  16. echo \'Currency Code: \' . $ipdat->geoplugin_currencyCode . "\\n";
  17. echo \'Timezone: \' . $ipdat->geoplugin_timezone;
  18.  
  19. ?>
  20. ';

Editor

You can edit this paste and save as new:


File Description
  • f
  • Paste Code
  • 23 Jul-2021
  • 800 Bytes
You can Share it: