I think this is still not posible, cause theres no extension to play sound files, How ever I recently wanted to do something like this, so I write a simple app to play wav files without any GUI or Commandline in the background, so you could use this to play a sound from php without any noticeable event.
http://www.waipe.com/archivos/WavPlayer.7z
Just uncompress it and include the WavPlayer.php and do something like this:
| Code: |
<?php
include('WavPlayer/WavPlayer.php');
$player = new WavPlayer();
/* You can specific where you put the files
* in that case do
* $player = new WavPlayer(Path_to_files);
*/
$player->play_wav_from_stock('1');
//Or if you want a specific wav file
//$player->play_wav_file('complete_path_to_wavfile.wav');
?>
|
or use as you want the WavPlayer.exe the only thing that this exe do is to play the wav file passed as the first parameter. (i.e. WavPlayer.exe file.wav).
I'll Try to write a php extension to play sound files(wav, mp3, ogg, etc) I'll let you know if I doit.
Regards