Welcome Guest, Not a member yet? Register   Sign In
bypass controller and modify headers for flv output
#4

[eluser]Phil Sturgeon[/eluser]
To make sure there is nothing output already, best to clear the output buffer.

Code:
while (@ob_end_clean());
    
    header("Content-Type: video/x-flv");
    header("Content-Disposition: attachment; filename=\"$filename\"");
    header("Content-Length: " . $filesize .")";
    
    echo $whatever;

    die();


Messages In This Thread
bypass controller and modify headers for flv output - by El Forum - 09-29-2008, 05:54 AM
bypass controller and modify headers for flv output - by El Forum - 09-29-2008, 07:31 AM
bypass controller and modify headers for flv output - by El Forum - 09-29-2008, 07:39 AM
bypass controller and modify headers for flv output - by El Forum - 09-30-2008, 06:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB