Hide Audio Url In Php June 16, 2024 Post a Comment I am playing audio in mp3 format but I want to hide the mp3 url. I'm using PHP and I try this code but his is not working. HTML ; if(is_file($filename)) { header('Content-Type: audio/mpeg'); header('Content-Disposition: inline;filename="'.basename($filename).'"'); header('Content-length: '.filesize($filename)); header('Cache-Control: no-cache'); header("Content-Transfer-Encoding: chunked"); readfile($filename); } CopyBasically we are outputting the raw audio stream in the location where mp3.php is called. This is also how we do it when we say <img src='img.php'> Share You may like these postsHtml 5 - Play Tiny Mp3 "inline"Can You Make An Embedded Mp3 Keep Playing From Where It Left Off?Web Audio Api - Record To Mp3?Flash Mp3 Player With Javascript Controls Post a Comment for "Hide Audio Url In Php"
Post a Comment for "Hide Audio Url In Php"