Jump to content

Slow header output


hlstriker

Recommended Posts

I'm trying to make a script to stream a flash video.

 

Everything works fine except the headers don't send until the script is done executing. This is bad because the script needs to throttle the bandwidth which makes the script load very slow.

 

Is there a way to force the headers to the client browser as soon as they are called in the script?

 

header("Content-Type: video/x-flv");
header("Content-Length: " . $fileSize);

SomeForceHeaderFunction();

Link to comment
https://forums.phpfreaks.com/topic/133264-slow-header-output/
Share on other sites

Archived

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

×
×
  • Create New...

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.