![]() |
| ||
| help executing a .wav file with php code Greetings, Would some experts show me php code to play a .wav file? Thank you very much in advance. phpnovice |
| ||
| Re: help executing a .wav file with php code You can embed html code in php. Example, <EMBED SRC="yourfile.wav" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED> Hope it helps. |
| ||
| Re: help executing a .wav file with php code Quote:
Thanks for your help. I tried your code and it only worked outside php. I use dynamic .wav file name that is generated by php, it can not be used outside php. I will appreciate it very much if you have further suggestion. phpnovice :cry: |
| ||
| Re: help executing a .wav file with php code Post your code or Try the following code. [PHP]<?php $wave_file = generate_wavfile(); //This is the example one. //Generate/Get wave file name without .wav extension format. echo "<EMBED SRC=\"$wave_file.wav\" HIDDEN=\"TRUE\" AUTOSTART=\"TRUE\"></EMBED>"; ?>[/PHP] |
| ||
| Re: help executing a .wav file with php code Quote:
Hi PoA, Thank you very much. I will try it this evening and let you know. phpnovice :lol: |
| ||
| Re: help executing a .wav file with php code Quote:
I tried and it worked. Thank you very very much. phpnovice :cheesy: |
| ||
| Re: help executing a .wav file with php code sounds great! and please don't double post :) |
| ||
| Re: help executing a .wav file with php code Aha! at last! i found here what ive been searchin for.... tnxs bro your the best! |
| All times are GMT -4. The time now is 6:30 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC