Skip to content

Instantly share code, notes, and snippets.

Created May 20, 2017 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/006009edfe6be71daf5e028b10377f60 to your computer and use it in GitHub Desktop.
Save anonymous/006009edfe6be71daf5e028b10377f60 to your computer and use it in GitHub Desktop.
<?php
if (isset($_GET['mp3'])) {
header('Content-Type: audio/mpeg; name="ololo.mp3"');
header('X-Accel-Redirect: /internal_redirect_on/24/0/0/0/0/0/0/ololo.mp3/127.0.0.1/test.one.mp3');
exit;
}
?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>demo</title>
</head>
<body>
<a href="audio.demo.302.php?mp3&amp;time=<?=time()?>&amp;dl">Download</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment