File manager - Edit - /home/monara/public_html/efm_web/stream-proxy.php
Back
<?php ini_set('display_errors', 1); error_reporting(E_ALL); header("Content-Type: audio/mpeg"); header("Cache-Control: no-cache"); header("Accept-Ranges: bytes"); $url = "http://207.148.74.192:7860/stream.mp3"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, false); curl_setopt($ch, CURLOPT_BUFFERSIZE, 8192); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_TIMEOUT, 0); $fp = fopen('php://output', 'wb'); curl_setopt($ch, CURLOPT_FILE, $fp); curl_exec($ch); if (curl_errno($ch)) { echo "cURL Error: " . curl_error($ch); } curl_close($ch); fclose($fp); ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings