|
Posted by d on 10/30/30 11:42
"ameshkin" <amir.meshkin@gmail.com> wrote in message
news:1142457520.558454.158470@j52g2000cwj.googlegroups.com...
> OK...well, the MP3 files are being played through a flash file. I know
> nothing about flash. So a download file and copying an mp3 file
> anywhere is out of the question. I'm already being billed extra for
> going over my disk space allotement.
>
> Parsing the server logs...this I may try to do, but I use godaddy. I
> don't even know where tehse server logs are kept! I will try and find
> out. If anyone knows anything about godaddy's server logs, please let
> me know! Thanks.
Just use the PHP method. It's really quite easy:
mp3.php:
<?
add_log_entry(); // Whatever your logging mechanism is, call it here :)
$mp3="/home/music/something.mp3";
header("Content-Disposition: attachment; filename=Your Own MP3.mp3"); //
You can change this part to suit each user
header("Content-Tye: audio/mpeg");
header("Content-Length: ".filesize($mp3));
$fp=fopen($mp3, "rb");
fpassthru($fp);
fclose($fp);
exit();
?>
I've not tested that, btw :)
Navigation:
[Reply to this message]
|