Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- flush() with gzip
May 13, 2012, 2:14 am
rate this thread
() after the <body> tag to help speed up the delivery of a page. I'm not re=
ally having a speed issue at the moment, but figured that a gain of 500ms m=
ight help save a little server stress.
The thing I'm not clear on, though, is whether this works with Gzip compres=
sion, or is using Gzip taking precedent over flush() and making flush() irr=
Re: flush() with gzip
after the<body> tag to help speed up the delivery of a page. I'm not really
having a speed issue at the moment, but figured that a gain of 500ms might help
save a little server stress.
compression, or is using Gzip taking precedent over flush() and making flush()
Don't believe everything you read on the internet!
flush() will flush the PHP buffers to the server. But PHP can't control
what happens to the data after that. The server can buffer the data, it
can be cached by proxies between the server and the client, and the
client will buffer the data. The client may or may not display the data
before all of it arrives.
It's not like a C application where the application can flush data
directly to the screen.
Remove the "x" from my email address
JDS Computer Training Corp.