Jump to content


This topic is now archived and is closed to further replies.


probllems whith mime type

Recommended Posts


i am uploading audio to a db and reproducing it whith an embed php file whith a mime type content type

so far i hav been able to work with wma files fine. i can reproduce them with embed and my script using the audio basic mime type.

i need to work with wav files, the problem is i tred all the wav mime types like audio/wav, audio/x-wav and all that but what happens is my empeded player comes up on the page but has no sound the data is comming throgh i am sure i can print it.

here is the embeded file im using

header("Content-type: audio/x-wav");


$sql = "SELECT audio FROM audio WHERE id='".$_GET["id"]."';";
$result = mysql_query($sql, $conn);
$row = mysql_fetch_array($result);
$audio = $row["audio"];
echo $audio;

it goes in to the <embed src=get_audio.php?id=21> etc.

so it works with wma files but wav files seem to just produce an embeded player with no sound.

thanx for any help

Share this post

Link to post
Share on other sites
correct format tested with all audio files good luck



$music_query="SELECT * from members_music_uploads where id='$id'";

while($mus=mysql_fetch_assoc($music_result)) {

$music_link="<embed src='members_music/".$mus["userfile_name"]."'  bgcolor='#A0C0F0' width='125' height='125' autostart='false' loop='false' >";


Share this post

Link to post
Share on other sites
well thats not exactly what i was looking for. your working with paths, im trying to embed the data in to a file and then ebed that with an embed tag, it works fine, but i cant seem to mimic the wav file correctly or the player is not taking it in, it is working fine with wma.  im looking for somone who might be able to see an error or know of possible causes.

buut thanx.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.