help executing a .wav file with php code

Reply

Join Date: Aug 2004
Posts: 14
Reputation: phpnovice is an unknown quantity at this point 
Solved Threads: 0
phpnovice phpnovice is offline Offline
Newbie Poster

help executing a .wav file with php code

 
0
  #1
Sep 12th, 2004
Greetings,

Would some experts show me php code to play a .wav file?

Thank you very much in advance.

phpnovice
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 234
Reputation: PoA is an unknown quantity at this point 
Solved Threads: 8
PoA PoA is offline Offline
Posting Whiz in Training

Re: help executing a .wav file with php code

 
0
  #2
Sep 12th, 2004
You can embed html code in php.

Example,
<EMBED SRC="yourfile.wav" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED>

Hope it helps.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 14
Reputation: phpnovice is an unknown quantity at this point 
Solved Threads: 0
phpnovice phpnovice is offline Offline
Newbie Poster

Re: help executing a .wav file with php code

 
0
  #3
Sep 13th, 2004
Originally Posted by PoA
You can embed html code in php.

Example,
<EMBED SRC="yourfile.wav" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED>

Hope it helps.
Hi PoA,

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:
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 234
Reputation: PoA is an unknown quantity at this point 
Solved Threads: 8
PoA PoA is offline Offline
Posting Whiz in Training

Re: help executing a .wav file with php code

 
1
  #4
Sep 13th, 2004
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]
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 14
Reputation: phpnovice is an unknown quantity at this point 
Solved Threads: 0
phpnovice phpnovice is offline Offline
Newbie Poster

Re: help executing a .wav file with php code

 
0
  #5
Sep 14th, 2004
Originally Posted by PoA
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]

Hi PoA,

Thank you very much. I will try it this evening and let you know.

phpnovice :lol:
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 14
Reputation: phpnovice is an unknown quantity at this point 
Solved Threads: 0
phpnovice phpnovice is offline Offline
Newbie Poster

Re: help executing a .wav file with php code

 
0
  #6
Sep 14th, 2004
Originally Posted by PoA
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]
Hi PoA,

I tried and it worked.

Thank you very very much.

phpnovice :cheesy:
Reply With Quote Quick reply to this message  
Join Date: Nov 2003
Posts: 360
Reputation: Gary King will become famous soon enough Gary King will become famous soon enough 
Solved Threads: 5
Team Colleague
Gary King's Avatar
Gary King Gary King is offline Offline
PHP/vBulletin Guru

Re: help executing a .wav file with php code

 
0
  #7
Sep 19th, 2004
sounds great! and please don't double post
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 10
Reputation: vaultdweller123 is an unknown quantity at this point 
Solved Threads: 0
vaultdweller123 vaultdweller123 is offline Offline
Newbie Poster

Re: help executing a .wav file with php code

 
0
  #8
Oct 1st, 2009
Aha! at last! i found here what ive been searchin for.... tnxs bro your the best!
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC