944,084 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 17434
  • PHP RSS
Sep 12th, 2004
0

help executing a .wav file with php code

Expand Post »
Greetings,

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

Thank you very much in advance.

phpnovice
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
phpnovice is offline Offline
14 posts
since Aug 2004
Sep 12th, 2004
0

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.
PoA
Reputation Points: 19
Solved Threads: 9
Posting Whiz in Training
PoA is offline Offline
234 posts
since Jul 2004
Sep 13th, 2004
0

Re: help executing a .wav file with php code

Quote 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:
Reputation Points: 10
Solved Threads: 0
Newbie Poster
phpnovice is offline Offline
14 posts
since Aug 2004
Sep 13th, 2004
1

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]
PoA
Reputation Points: 19
Solved Threads: 9
Posting Whiz in Training
PoA is offline Offline
234 posts
since Jul 2004
Sep 14th, 2004
0

Re: help executing a .wav file with php code

Quote 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:
Reputation Points: 10
Solved Threads: 0
Newbie Poster
phpnovice is offline Offline
14 posts
since Aug 2004
Sep 14th, 2004
0

Re: help executing a .wav file with php code

Quote 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:
Reputation Points: 10
Solved Threads: 0
Newbie Poster
phpnovice is offline Offline
14 posts
since Aug 2004
Sep 19th, 2004
0

Re: help executing a .wav file with php code

sounds great! and please don't double post
Team Colleague
Reputation Points: 53
Solved Threads: 5
PHP/vBulletin Guru
Gary King is offline Offline
360 posts
since Nov 2003
Oct 1st, 2009
0

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!
Reputation Points: 32
Solved Threads: 64
Posting Pro
vaultdweller123 is offline Offline
507 posts
since Sep 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP and cookies (and milk!) - probably a simple error
Next Thread in PHP Forum Timeline: joomla/virtuemart question.. Please help!!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC