Saving generated .wav file to server with PHP

Posted by bionicOnion on Stack Overflow See other posts from Stack Overflow or by bionicOnion
Published on 2012-11-13T22:52:05Z Indexed on 2012/11/13 22:59 UTC
Read the original article Hit count: 321

Filed under:
|
|

I am developing a website where users can compose their own music, and the site will generate a .wav file for their creation. This is working correctly (inasmuch as I can play it on the page). However, I would like to save this file to the server to be listened to/downloaded at a later time, and the saved version of the file can no longer be opened and played by the HTML audio tag.

What, if anything, must I put into the file besides the file besides the raw data? Instead of setting the src attribute of the audio tag to the location of the file, will I actually need to open it and generate a URI?

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript