View Full Version : CGI Script to play an mp3 on click
rwbaker
05-16-2003, 05:35 AM
Hey guys,
I'm looking for a script to play an audio file (pref. mp3) when one clicks on the link.
Can anyone help me locate one or give some pointers in building one.
thanks in advance,
rwbaker
YUPAPA
05-16-2003, 04:11 PM
I don't think you need a script to just play mp3, etc...
Simply put:
<EMBED SRC="http://www.yourdomain.com/path/to/file.mp3">
rwbaker
05-16-2003, 04:40 PM
Hey Yuppa, thanks for the help.
The EMBED code does just that, embeds the mp3 into the page and plays on load. I'm looking for some type of cgi script that will allow me to play an mp3 when clicking on a link, without loading a new page.
A common cgi script for this is audio.pl, but I havn't been able to find that.
Thanks for the help.
-rwbaker
^KoalaBear^
05-29-2003, 08:29 AM
Wait for a lonnnnnnnng rainy day 'n set google.com to search audio.pl :D
rwbaker
05-29-2003, 10:27 PM
Great idea..... I've doen that already, it's all over the net. The big issue is i dont' know how to grab that script.
-rwbaker:thumbsup: :thumbsup:
^KoalaBear^
05-30-2003, 12:46 AM
See if any of the downloads on this site include the file youre after... HERE! (http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Audio_Management/)
... or maybe HERE! (http://www.hotscripts.com/PHP/Scripts_and_Programs/Audio_and_Sound/)
I have also written to an aussie webmaster who used one on a radio station site he designed, hoping he might zip it to me. Will pass it on if he does.
Cheers
KB...
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.