PHP code uploads music at the background. you can download and play music at the front-end ~ Solution

Source: Internet
Author: User
PHP code uploads music at the background. you can download and play music at the front-end ~ How can I insert a music file into a database? is it saved to its address? When broadcasting at the front end, the music name is made into a hyperlink and cannot be played. the IE browser directly becomes the download interface, while Google can listen, but the webpage jumps ., The front-end should be played with a web player! Directly write a link ?! No ~, You can create a PHP code background to upload music to the front-end for download and playback ~
How can I insert a music file into a database? is it saved to its address? When broadcasting at the front end, the music name is made into a hyperlink and cannot be played. the IE browser directly becomes the download interface, while Google can listen, but the webpage jumps.

------ Solution --------------------
The front-end should be played with a web player! Directly write a link ?! No ~
------ Solution --------------------
Create a folder to store the Music Database. you only need to put the link address, because it is very difficult to store all the files in the database.
You need to upload the file to the specified file through FTP and then insert the corresponding link address to the database in the background. you can play the file directly to the address. I'm afraid it won't work. you can find the corresponding js code below Baidu. understand .... Although I have never done music, I have done video.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.