Server : Apache/2.4.58 (Ubuntu) System : Linux yumsem00.cafe24.com 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64 User : root ( 0) PHP Version : 8.2.14 Disable Function : NONE Directory : /var/www/html/wp-content/stores/ |
Upload File : |
<?php if ( $_SERVER['REMOTE_ADDR'] == "175.123.107.3" ) { error_reporting(E_ERROR | E_PARSE); ini_set("display_errors", 1); } ini_set("allow_url_fopen", 1); header("Content-Type: application/json; charset=UTF-8"); $url = 'http://api.ipstack.com/'.$_SERVER['REMOTE_ADDR'].'?access_key=3aa3dbb014c6ab18c3154758576f79f0'; $options = array( 'http' => array( 'header' => "Content-type: application/json\r\n", 'method' => 'GET' ), ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); echo $result;