php mp3 headers in google chrome
Posted
by David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2010-04-13T08:21:21Z
Indexed on
2010/04/13
8:22 UTC
Read the original article
Hit count: 161
php
I have this in a php to show a mp3 file, it code works fine on firefox and explorer but in chrome it not work. The chrome player appears but no sound and not increases time
$ext = strtolower(substr(strrchr($filename,"."),1)); $ctype="audio/mpeg"; header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); header("Content-Type: $ctype"); header("Content-Length: ".$len);
© Stack Overflow or respective owner