Hello.How are You?
I'm wondering about how to setup an mp3 for downloading from my server using php.
Should I use something like a filesystem object to convert the data to byte data?
I'm at a bit of a loss right now.A tutorial would be helpfull.
Thank you
Downloading an MP3
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
I'm sorry about not posting in the proper place.
I mean making a mp3 file(stored on my server) available for people to download.How do I go about this in php code?(i.e do I have to convert the mp3 to a byte type object first etc.).I'm not talking about just playing it.A tutorial link would be good.
Thanks
I mean making a mp3 file(stored on my server) available for people to download.How do I go about this in php code?(i.e do I have to convert the mp3 to a byte type object first etc.).I'm not talking about just playing it.A tutorial link would be good.
Thanks
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
If your looking for a way to download files through php, for whatever reason, you could use this snipplet posted in our useful post thread