Re[2]: [PHP] output compression and MSIE

2003-07-09 Thread sebab
Hi,

I'm shocked. It seems it works! However.. My pages without forcing ISO
8559-2 don't look good. What to use instead so?

--
Best regards,
Sebastian

Tuesday, July 8, 2003, 3:55:43 PM, you wrote:
MO [snip]
 My head looks like that - nothing special..
 
 head
 LINK href=/css/main.css rel=stylesheet type=text/css
 TITLESome title/TITLE
 meta http-equiv=Content-Type content=text/html; charset=iso-8859-2
 script language=JavaScript 
 src=/javascripts/date_picker/date_picker.js/script
 /head
MO [/snip]

MO sorry list for the mess in this thread. got somewhat wrong.

MO try to take the following line out:
MO meta http-equiv=Content-Type content=text/html; charset=iso-8859-2
MO (modifing to output correct type would be even better)

MO regards
MO mario


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] output compression and MSIE

2003-07-09 Thread Mario Oberrauch

 Hi,
 
 I'm shocked. It seems it works! However.. My pages without forcing ISO
 8559-2 don't look good. What to use instead so?

Hi,

You could try leaving the line an and add content-encoding headers like this

meta http-equiv=content-encoding content=gzip
(or an equiv. header() statement)

Haven't tried that, but i see a chance that it works properly.
Question is, if you let mod_gzip zip your pages, how to know when to send
this header-directive. I'm quite sure about that IE is up to making
troubles getting unzipped content with that header.

regards
mario


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] output compression and MSIE

2003-07-08 Thread sebab
Hello,

I've found problem with MSIE showing sometimes blank page when
compression is turned on (no matter using zlib.output_compression or
gzip handler). I've found that happens when page is =4096 bytes long
(output in HTML). And this suggested me to try to change buffer size
for compression (for zlib, that I was using) cause it was set to
exactly 4KB. But that didn't help at all :-( If I add space characters
at the end of output to let page grow ower 4096 bytes - everything
works fine, else MSIE shows blank page and user has to hit Refresh
button to see correct page. With other browsers that problem doesn't
happen.

Do you have any idea how to solve that? BTW - changing browser or
doing anything with user system is not good idea for me, cause I can't
force users of my application to do anything - they use (and will use)
windows+IE and so that's my problem to find solution. And output
compression is a MUST for me cause I have to cut network traffic to
lower users costs of using internet (GPRS transmission using mobile
phones).

Big thanks in advance for any help

Sebastian Baran


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] output compression and MSIE

2003-07-08 Thread Mario Oberrauch
 Hello,
 
 I've found problem with MSIE showing sometimes blank page when
 compression is turned on (no matter using zlib.output_compression or
 gzip handler). I've found that happens when page is =4096 bytes long
 (output in HTML). And this suggested me to try to change buffer size
 for compression (for zlib, that I was using) cause it was set to
 exactly 4KB. But that didn't help at all :-( If I add space characters
 at the end of output to let page grow ower 4096 bytes - everything
 works fine, else MSIE shows blank page and user has to hit Refresh
 button to see correct page. With other browsers that problem doesn't
 happen.
 
 Do you have any idea how to solve that? BTW - changing browser or
 doing anything with user system is not good idea for me, cause I can't
 force users of my application to do anything - they use (and will use)
 windows+IE and so that's my problem to find solution. And output
 compression is a MUST for me cause I have to cut network traffic to
 lower users costs of using internet (GPRS transmission using mobile
 phones).
 
 Big thanks in advance for any help
 
 Sebastian Baran

heyho lucky one

thought not anyone else would have that bug. it's a very nasty one (at
least it was in my case) to figure out. i'd suggest looking for the
content-type you are sending with. may it be it's a text/html or
somewhat thislike?

regards
mario



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[2]: [PHP] output compression and MSIE

2003-07-08 Thread sebab
Hello,

Good to see someone else met that feature of MS Internet
Exploder ;)

At really I don't put any headers with content info.
Only headers are:

 header ('Last-Modified: '.gmdate(D, d M Y H:i:s).' GMT');
 header ('Expires: '.gmdate(D, d M Y H:i:s).' GMT');
 header ('Cache-Control: no-cache, must-revalidate');
 header ('Pragma: no-cache');

And output is simple HTML. What should I do so? Should I send any
other header to fix that?

And I also spent a lot of time wondering why the hell I get blank page
sometimes?. Especially it was working good on one server and buggy
on another (now I now, another server had compression turned off).

--
Best regards,
Sebastian

Tuesday, July 8, 2003, 2:41:28 PM, you wrote:
 Hello,
 
 I've found problem with MSIE showing sometimes blank page when
 compression is turned on (no matter using zlib.output_compression or
 gzip handler). I've found that happens when page is =4096 bytes long
 (output in HTML). And this suggested me to try to change buffer size
 for compression (for zlib, that I was using) cause it was set to
 exactly 4KB. But that didn't help at all :-( If I add space characters
 at the end of output to let page grow ower 4096 bytes - everything
 works fine, else MSIE shows blank page and user has to hit Refresh
 button to see correct page. With other browsers that problem doesn't
 happen.
 
 Do you have any idea how to solve that? BTW - changing browser or
 doing anything with user system is not good idea for me, cause I can't
 force users of my application to do anything - they use (and will use)
 windows+IE and so that's my problem to find solution. And output
 compression is a MUST for me cause I have to cut network traffic to
 lower users costs of using internet (GPRS transmission using mobile
 phones).
 
 Big thanks in advance for any help
 
 Sebastian Baran

MO heyho lucky one

MO thought not anyone else would have that bug. it's a very nasty one (at
MO least it was in my case) to figure out. i'd suggest looking for the
MO content-type you are sending with. may it be it's a text/html or
MO somewhat thislike?

MO regards
MO mario


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[3]: [PHP] output compression and MSIE

2003-07-08 Thread sebab
Hello once more,

Tuesday, July 8, 2003, 3:25:31 PM, you wrote:
MO Hello too,

MO Well yes, IE is not that wrong this time (though it changes nothing at all :))
MO Take a look into the head - section of your document, maybe there is
MO some content-encoding sent or your apache config (maybe some default-encoding,
MO not sure about, but's a hint).

My head looks like that - nothing special..

head
LINK href=/css/main.css rel=stylesheet type=text/css
TITLESome title/TITLE
meta http-equiv=Content-Type content=text/html; charset=iso-8859-2
script language=JavaScript src=/javascripts/date_picker/date_picker.js/script
/head

And nothing set in Apache.. :-/

MO As mentioned, the bug exactly is, that ie get's a wrong content-type and therefore
MO can't decompress the g-zip stuff. i'd say sending correct g-zip headers may
MO not be wrong at all, though i must say you have to relay on google on more
MO info on that. don't sure about them.

I tried to find something about that with google, but no effects so
far..

MO but why the heck the ie-thingy can decode on a refresh-hit is not logical.

ie is not logical at all ;) And more serious - ie shows correct page
if user click the link to page being a problematic, but redirecting or
moving to such page from form with action option doesn't work and
we have blank page.

MO The 4k-thing is becaus mod_gzip doesn't compress under this size.

I can't agree with you here. I checked with telnet what I get. And I
what I saw was surely zipped content. No matter less or more 4kB page
was. But somehow over 4kB IE understands what to do.

MO (don't get me wrong but in some way i'm happy about someone having the same bug - 
MO so the time to figure this one out isn't lost one :) - definitly nothing personal)

Sure, I can say the same ;) Good to have someone to talk to about that
problem. :)

MO regards
MO mario


--
Best regards,
Sebastian


Tuesday, July 8, 2003, 3:37:27 PM, you wrote:
sdcp Hello,

sdcp Good to see someone else met that feature of MS Internet
sdcp Exploder ;)

sdcp At really I don't put any headers with content info.
sdcp Only headers are:

sdcp  header ('Last-Modified: '.gmdate(D, d M Y H:i:s).' GMT');
sdcp  header ('Expires: '.gmdate(D, d M Y H:i:s).' GMT');
sdcp  header ('Cache-Control: no-cache, must-revalidate');
sdcp  header ('Pragma: no-cache');

sdcp And output is simple HTML. What should I do so? Should I send any
sdcp other header to fix that?

sdcp And I also spent a lot of time wondering why the hell I get blank page
sdcp sometimes?. Especially it was working good on one server and buggy
sdcp on another (now I now, another server had compression turned off).

sdcp --
sdcp Best regards,
sdcp Sebastian

sdcp Tuesday, July 8, 2003, 2:41:28 PM, you wrote:
 Hello,
 
 I've found problem with MSIE showing sometimes blank page when
 compression is turned on (no matter using zlib.output_compression or
 gzip handler). I've found that happens when page is =4096 bytes long
 (output in HTML). And this suggested me to try to change buffer size
 for compression (for zlib, that I was using) cause it was set to
 exactly 4KB. But that didn't help at all :-( If I add space characters
 at the end of output to let page grow ower 4096 bytes - everything
 works fine, else MSIE shows blank page and user has to hit Refresh
 button to see correct page. With other browsers that problem doesn't
 happen.
 
 Do you have any idea how to solve that? BTW - changing browser or
 doing anything with user system is not good idea for me, cause I can't
 force users of my application to do anything - they use (and will use)
 windows+IE and so that's my problem to find solution. And output
 compression is a MUST for me cause I have to cut network traffic to
 lower users costs of using internet (GPRS transmission using mobile
 phones).
 
 Big thanks in advance for any help
 
 Sebastian Baran

MO heyho lucky one

MO thought not anyone else would have that bug. it's a very nasty one (at
MO least it was in my case) to figure out. i'd suggest looking for the
MO content-type you are sending with. may it be it's a text/html or
MO somewhat thislike?

MO regards
MO mario


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] output compression and MSIE

2003-07-08 Thread Mario Oberrauch
[snip]
 My head looks like that - nothing special..
 
 head
 LINK href=/css/main.css rel=stylesheet type=text/css
 TITLESome title/TITLE
 meta http-equiv=Content-Type content=text/html; charset=iso-8859-2
 script language=JavaScript src=/javascripts/date_picker/date_picker.js/script
 /head
[/snip]

sorry list for the mess in this thread. got somewhat wrong.

try to take the following line out:
meta http-equiv=Content-Type content=text/html; charset=iso-8859-2
(modifing to output correct type would be even better)

regards
mario



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php