954,148 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

phpnovice
Newbie Poster
14 posts since Aug 2004
Reputation Points: 10
Solved Threads: 0
 

You can embed html code in php.

Example,

Hope it helps.

PoA
Posting Whiz in Training
237 posts since Jul 2004
Reputation Points: 26
Solved Threads: 9
 

You can embed html code in php.

Example,

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:

phpnovice
Newbie Poster
14 posts since Aug 2004
Reputation Points: 10
Solved Threads: 0
 

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 "";

?>[/PHP]

PoA
Posting Whiz in Training
237 posts since Jul 2004
Reputation Points: 26
Solved Threads: 9
 

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 "";

?>[/PHP]


Hi PoA,

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

phpnovice :lol:

phpnovice
Newbie Poster
14 posts since Aug 2004
Reputation Points: 10
Solved Threads: 0
 

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 "";

?>[/PHP]

Hi PoA,

I tried and it worked.

Thank you very very much.

phpnovice :cheesy:

phpnovice
Newbie Poster
14 posts since Aug 2004
Reputation Points: 10
Solved Threads: 0
 

sounds great! and please don't double post :)

Gary King
PHP/vBulletin Guru
Team Colleague
417 posts since Nov 2003
Reputation Points: 53
Solved Threads: 5
 

Aha! at last! i found here what ive been searchin for.... tnxs bro your the best!

vaultdweller123
Posting Pro
554 posts since Sep 2009
Reputation Points: 42
Solved Threads: 75
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You