Hide Audio Url In Php January 28, 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 postsAsp.net Mvc Not Serving Mp3 FilesSearch Block Of Text, Return Mp3 Links Using PhpEmbed Randomly Named Mp3Good Mp3 Player For Music Website To Sell Songs? Post a Comment for "Hide Audio Url In Php"
Post a Comment for "Hide Audio Url In Php"