php - Stream audio files from my home computer to my website -
Hello! I have some questions about a website that I am creating for which audio files are required after referencing my SQL database after echoing my HTML using my HTML.
To get started, my page has an audio control tag with a PHP echo inside it, such as:
The variable $ file is the same as the audio file the user wants to play after filling out a selected form on a separate page, which has been pulled from my database:
< Include pre-> table values (null, "track01.mp3"); (NULL, "track02.mp3"); (NULL, "track03.mp3"); (NULL, "track04.mp3");
Therefore, if the user chooses the first track from the selected form, then HTML looks like this:
Everything works by this point
My audio is completely recovering and the php / mysql code works great Used to be; The problem I am facing is that I'm going to have more than 5 gigabytes of audio in my database, which I can not put on my web server due to the disk space limit, I thought, "I want to stream on my website How can I get my audio, so I do not need 5 gigabytes on my website? "
So I was already using WAMP to test my site) and I'm trying to link that server to my website.
My first exam was keeping all of my music on my local host and then I changed my code to call the files like this live website:
& Lt; Audio control & gt; & Lt; Source src = "http: // localhost / audio /
It works perfectly, but obviously it will not work for anyone because they do not have access to their computers on their local computer.
So my big question is , how can I set up my website so that my PHP echo a file from a local host on my home computer, but whatever my Enables the site to view audio tags, not errors? I think this will happen to everyone who accesses my IP address, but whatever I have tried has failed so far. Is there a solution to my problem? Am I taking a wrong view on this? Should I specify anything?
Any answer will be highly appreciated. Thanks!
I see cloud storage - there are a lot of engines that give very good prices / some free. For example, Amazon S3, Box, Dropbox etc. I currently have 50GB of free storage and many of these providers provide http access to shared directories - unless you are breaking any copyright laws etc.
Comments
Post a Comment