how to play sound in php
PHP is a processing language.It can’t play sound.But to use it dynamically we can use it as using html code. $myAudioFile = “mysong.mp3″; echo ‘<EMBED SRC=”‘.$myAudioFile.'” HIDDEN=”TRUE” AUTOSTART=”TRUE”></EMBED>’;
PHP is a processing language.It can’t play sound.But to use it dynamically we can use it as using html code. $myAudioFile = “mysong.mp3″; echo ‘<EMBED SRC=”‘.$myAudioFile.'” HIDDEN=”TRUE” AUTOSTART=”TRUE”></EMBED>’;
In this article you will see how to give download link in PHP to download a file from server. Giving a download link is very easy if you are using HTML5. In HTML5, we just need to add a download attribute in anchor tag with giving file source as href. This steps will create a … Read more