Subject: File downloads from php
From: Grant Stockly (grant@stockly.com)
Date: Sat Jun 22 2002 - 17:55:36 AKDT
Anyone offhand know how to pass a different file name to a browser when 
they try to download the link?  I want to let users download 30 second 
mp3's stored in a mysql database.  My first thought was just to create add 
*mp3 to apache as a php script and then make a php file called something 
like "song.mp3" where the table and ID were passed to the "song.mp3" script 
by POST.
Not the prettiest way to go.  I haven't got too far into the docs yet, but 
Its got to be easier...  I'd like to have dynamic file generation, like 
artist-song.mp3...
Is anyone interested in a network attached mp3 player running off a 
JetDirect 170?  I can post some pictures somewhere...
Thanks,
Grant
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
This archive was generated by hypermail 2a23 : Sat Jun 22 2002 - 17:56:44 AKDT