Embed music with dowload.php file
Embed music with dowload.php file - hello guys Best Web Hosting And Website Builder, On sharing web hosting this time titled Embed music with dowload.php file, I have been providing the Best Web Hosting And complete Website Builder. Hopefully the contents of posts Best Web Hosting And Website Builder that I write this you can understand. This, he'll Best Web Hosting And Website Builder.
Title : Embed music with dowload.php file
other title : Embed music with dowload.php file
My solution: we'll have to break this down into two parts: one will be the embed script and the other one will be the download link.
Sometimes a simple embed music script would not be enough as Internet Explorer has its own way to understand it, therefore the script I'm going to provide you with is one that takes this into account too. I used a not too fancy but very descriptive article simply called Embedding Audio
note: you may replace mydomain.com with your domain name and music/01_mymusic.mp3 with the path to and file name of your .mp3 file on your hosting server:
(click in the box to highlight the code for copy)
You'll see an example of a simple but effective way to "call" the little open/save as window when clicking a download link. The forum thread that helped me is called download pdf hyperlink (scroll all the way to the bottom to get the clean version of the code). All I needed to do here is to replace the .pdf with .mp3 and place the download.php file into the folder where my .mp3 files were located on the hosting server (using the same path we refer to in above code):
(click in the box to highlight the code for copy)
Title : Embed music with dowload.php file
other title : Embed music with dowload.php file
Embed music with dowload.php file
Scenario: you would like to embed a music file (.mp3 in our example) into your website and also want to make sure that when someone clicks the download link the usual open / save as window opens instead of the browser trying to open the file directly with whatever plugin already installed.My solution: we'll have to break this down into two parts: one will be the embed script and the other one will be the download link.
Step 1 Embed music with IE support
Sometimes a simple embed music script would not be enough as Internet Explorer has its own way to understand it, therefore the script I'm going to provide you with is one that takes this into account too. I used a not too fancy but very descriptive article simply called Embedding Audio
note: you may replace mydomain.com with your domain name and music/01_mymusic.mp3 with the path to and file name of your .mp3 file on your hosting server:
(click in the box to highlight the code for copy)
Step 2 Download link with download.php file
You'll see an example of a simple but effective way to "call" the little open/save as window when clicking a download link. The forum thread that helped me is called download pdf hyperlink (scroll all the way to the bottom to get the clean version of the code). All I needed to do here is to replace the .pdf with .mp3 and place the download.php file into the folder where my .mp3 files were located on the hosting server (using the same path we refer to in above code):
(click in the box to highlight the code for copy)
Thus article Embed music with dowload.php file
Best Web Hosting And Website Builder Embed music with dowload.php file, Hopefully can give benefits to all of you. well, the Best Web Hosting And Website Builder posts this time.
No comments: