• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.