Download Files Using Mp3

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sarbas
Forum Commoner
Posts: 64
Joined: Thu Jan 04, 2007 5:51 am

Download Files Using Mp3

Post by sarbas »

Hi folks,


i am upload the mp3 files into one folder in the database using php coding, and it will work. but i don't know how to download the mp3 files from the folder. i already searched in the google. but i am not get any idea about from there. please help me, if anybody know the answer.

thank [s]u[/s] you
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.

Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

What do you mean by "a folder in the database"?
sarbas
Forum Commoner
Posts: 64
Joined: Thu Jan 04, 2007 5:51 am

Download Files Using Mp3

Post by sarbas »

hi folks,

folder in database means, create one folder in the server and store the files in that folder.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

might be as simple as

Code: Select all

<a href="path/to/file.mp3">file.mp3</a>
User avatar
Gente
Forum Contributor
Posts: 252
Joined: Wed Jun 13, 2007 9:43 am
Location: Ukraine, Kharkov
Contact:

Post by Gente »

Another case if you don't want to allow direct access to your files :)
Then you have to read this topic - viewtopic.php?t=69943
sarbas
Forum Commoner
Posts: 64
Joined: Thu Jan 04, 2007 5:51 am

Download Files Using Mp3

Post by sarbas »

hi folks,

thanks for given that coding. i used that coding it will work. in that same time i want to change the name of the file when i click the link. how is it possible. or tell me any other way to download the file after downloading it will change the filename automatically.using any random number.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

A filename is a filename. It's up to the user if they'd like to change it.
Post Reply