Reply to Re: How to download MP3 and not play

Your name:

Reply:


Posted by nospam on 11/18/07 01:35

"J.O. Aho" <user@example.net> wrote in message
news:5q8tjrFusdcmU1@mid.individual.net...
> nospam wrote:
>
>> Thanks for all of the replies. I am interested in using the script
>> as Aho mentioned. Duh, I sort of understand what you are saying,
>> but need to clarify.
>>
>> This would be a server side script - like cgi?
>> or client side - like javascript?
>
> It has to be server side like php or any other scripting language.
>
> <?PHP
> $file="themp3file.mp3";
> header('Content-type: application/octet-stream');
> header('Content-Length: '. filesize($file));
> header("Content-Disposition: attachment; filename='{$file}'");
> readfile($file);
> ?>
>
> For more info, you can check the header() function on the PHP online
> manual
> http://www.php.net/manual/en/function.header.php
>
> --
>
> //Aho

Aho,
Thanks for you help. All this trouble to give my music away for free!!!

Regards,
bruce

[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

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