| | |
help executing a .wav file with php code
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2004
Posts: 14
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by PoA
You can embed html code in php.
Example,
<EMBED SRC="yourfile.wav" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED>
Hope it helps.
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:
•
•
Join Date: Aug 2004
Posts: 14
Reputation:
Solved Threads: 0
•
•
•
•
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:
•
•
Join Date: Aug 2004
Posts: 14
Reputation:
Solved Threads: 0
•
•
•
•
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]
I tried and it worked.
Thank you very very much.
phpnovice :cheesy:
![]() |
Similar Threads
- How we can upload a text file or word file using php Code??? (PHP)
- html table in php code. (PHP)
- how to create swf file in vb6 from bmp imgs in directory and wav file (Visual Basic 4 / 5 / 6)
Other Threads in the PHP Forum
- Previous Thread: PHP and cookies (and milk!) - probably a simple error
- Next Thread: joomla/virtuemart question.. Please help!!
| Thread Tools | Search this Thread |
# 5.2.10 action address apache api array auto autoincrement beginner binary broken cakephp checkbox class classes cms code cron curl database date dehasher destroy display dissertation domain dynamic echo echo$_get[x]changingitintovariable... email error errorlog fatalerror file files folder form forms function functions google href htaccess html if-else image images include insert ip javascript joomla legislation limit link load login mail masterthesis menu mlm multiple mysql mysqlquery oop open paypal pdf persist php popup problem query radio random record recursion remote script search server sessions sms sockets source space sql syntax system table tutorial update upload url validator variable video web youtube





