Reply to Re: I Need TO Be Able to tell HOW MANY TIMES AN MP3 FILE WAS HIT!!!

Your name:

Reply:


Posted by d on 11/18/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 :)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация