How to use external PHP file in СakePHP 2?

How can one use an HTML form and PHP to play an audio file?

  • I'd like to create a simple audio player that doesn't use Flash or Javascript. I've reasoned that any audio player is simply a form with buttons; so in my case the buttons would be Play and Stop. I'm not bad at PHP but I can't find anything anywhere that relates to controlling an audio file. Does anyone have any suggestions?

  • Answer:

    I don't think there is a way to make PHP play audio...the only thing I can think of to do is just directly link to the audio file and have it play when people click on it...the old fashioned way. This is not ideal though. Why don't you want to use Flash? Flash is pretty much standard on all browsers today (if someone doesn't have the Flash plugin, they're in the Internet Stone Age). Here's an amazing player I've used on various sites. It's easy to use and to maintain: http://musicplayer.sourceforge.net/

epicure at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.