Welcome Guest, Not a member yet? Register   Sign In
Loading an MP3 file through php validation for "streaming" in flash player
#5

[eluser]amites[/eluser]
Not sure why the helper didn't want to work for me, though ti did give me the template for a file_stream view that does work,

thank you!

for general reference:

Code:
<?php
    header('Content-Type: "application/octet-stream"');
    header('Content-Disposition: attachment; filename="'.$file_name.'"');
    header("Content-Transfer-Encoding: binary");
    header('Expires: 0');
    header('Pragma: no-cache');
    header("Content-Length: ".filesize($file_path));

    readfile($file_path);
?>


Messages In This Thread
Loading an MP3 file through php validation for "streaming" in flash player - by El Forum - 02-19-2009, 02:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB