Server IP : 192.64.118.117 / Your IP : 18.224.21.26 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/mobilecreationz.com/wp-content/plugins/fwdsuvp/content/ |
Upload File : |
<?php ini_set('display_errors', false); set_exception_handler('ReturnError'); $r = ''; $url = (isset($_GET['url']) ? $_GET['url'] : null); if ($url) { // fetch XML $c = curl_init(); curl_setopt_array($c, array( CURLOPT_URL => $url, CURLOPT_HEADER => false, CURLOPT_TIMEOUT => 15, CURLOPT_RETURNTRANSFER => true )); $r = curl_exec($c); curl_close($c); } if ($r) { // XML to JSON echo json_encode(new SimpleXMLElement($r)); } else { // nothing returned? ReturnError(); } // return JSON error flag function ReturnError() { echo '{"error":true}'; }