Yuri_orlov Posted September 16, 2008 Share Posted September 16, 2008 I have an IE issue ever since I enabled zlib IE will want to download the php file or just gives gibberish outputs Works fine on all other browsers... Any Ideas other than disabling zlib? Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted September 16, 2008 Share Posted September 16, 2008 Re: IE issue So you can download the actual php file? :-o Quote Link to comment Share on other sites More sharing options...
Dave Posted September 16, 2008 Share Posted September 16, 2008 Re: IE issue Damm thats bad :S, Good for some hackers/people who wanna steal your code, I would recommend firefox personally. Quote Link to comment Share on other sites More sharing options...
Floydian Posted September 16, 2008 Share Posted September 16, 2008 Re: IE issue Yuri_orlov used incorrect terminology there. What he means by "downloading the php file", he's talking about the HTML output send from the server, not the php code itself. From what I know, zlip will use gzip or deflate compression depending on what compression method the browser that access a page says it will accept. It is possible to have the browser send out the HTTP Header specifying that it accepts a compression that it actually doesn't accept. It's called "shooting yourself in the foot". IE 6 only accepts deflate. So if it's sending out the header: HTTP_ACCEPT_ENCODING with the value "gzip", it's telling php to encode the file with encoding it can't decode. IE 7 accepts both deflate and gzip, so I'd assume you're using a pretty old browser there (IE 8 is in beta at this point (why not upgrade to at least 7???)) Ultimately, HTTP_ACCEPT_ENCODING header is set by default to the correct setting, or it is not set at all which tells php to not encode the file. And as such, MOST browsers, including all IE browsers work fine when zlib is being used, so long as the default behaviour of the browser hasn't been modified. Quote Link to comment Share on other sites More sharing options...
Yuri_orlov Posted September 17, 2008 Author Share Posted September 17, 2008 Re: IE issue that would make sense but it happens in IE 7 as well, I am at wits end with the problem Quote Link to comment Share on other sites More sharing options...
Floydian Posted September 17, 2008 Share Posted September 17, 2008 Re: IE issue Try disabling it and using ob_start() instead. By the way, what version of php are you using? Quote Link to comment Share on other sites More sharing options...
Yuri_orlov Posted September 18, 2008 Author Share Posted September 18, 2008 Re: IE issue most resent version I think it may have something to do with the header location forwarding since it seems to happen mostly on pages where you are forwarded IE Login.php (b/c the server defaults to index.php). Crimes.php -> validation (does the php dl thing) or you get the validation but when you are forwarded to the crimes it tries to dl crimes. Quote Link to comment Share on other sites More sharing options...
Yuri_orlov Posted September 18, 2008 Author Share Posted September 18, 2008 Re: IE issue oh and to clarify I unset the session before forwarding, but dont destroy to keep the login active Quote Link to comment Share on other sites More sharing options...
Floydian Posted September 18, 2008 Share Posted September 18, 2008 Re: IE issue most recent version being? I should hope you're not using 5.3.0 RC2 :O :O It's not intended for production. Please specify the actual x.x.x Did you try the ob_start() deal? You'd have to disable lib giz in the ini first. It does pretty much the same exact thing. It's worth a shot. Quote Link to comment Share on other sites More sharing options...
yuriorlov Posted September 19, 2008 Share Posted September 19, 2008 Re: IE issue 5.2.6 havent turned it off yet, can you break down how to substitute the obstart() function. Quote Link to comment Share on other sites More sharing options...
Floydian Posted September 19, 2008 Share Posted September 19, 2008 Re: IE issue <?php ob_start("ob_gzhandler"); ?> <html> <body> This should be a compressed page.</p> </html> <body> ----------- That's the example from the php page for ob_gzhandler() Simply put, you put that function call at the beginning of your script, and that's it. (there's a bunch more you can do with "output buffereing" but that's beyond the scope of the problem you're having. Thanks for replying with the PHP Version ;) (helps me know for sure what I'm saying applies to ya ;) Quote Link to comment Share on other sites More sharing options...
yuriorlov Posted September 19, 2008 Share Posted September 19, 2008 Re: IE issue does this mean i need to include the gzip module on my php install? (was more of the question I was asking) Quote Link to comment Share on other sites More sharing options...
Floydian Posted September 19, 2008 Share Posted September 19, 2008 Re: IE issue Requirements No external libraries are needed to build this extension. http://us2.php.net/manual/en/outcontrol.setup.php Quote Link to comment Share on other sites More sharing options...
Yuri_orlov Posted September 23, 2008 Author Share Posted September 23, 2008 Re: IE issue ok so I turned it off in the ini. Every thing works fine (well on a double forward sometimes it has an issue and wont load the page but if you refresh it loads fine) so I do ob_start("ob_gzhandler"); and the download or gibberish starts again...(in IE 7) so does that mean I have found a bug in PHP? Quote Link to comment Share on other sites More sharing options...
Floydian Posted September 23, 2008 Share Posted September 23, 2008 Re: IE issue I seriously doubt that you've got a php bug happening there (although it's not out of the realm of possibility) Is there a page I can view? I'll test it out on a few browsers and see what happens for me. Quote Link to comment Share on other sites More sharing options...
yuriorlov Posted September 24, 2008 Share Posted September 24, 2008 Re: IE issue i will try to get you a second set of pages with it enabled this weekend, im currently in the middle of painting a room in my house Quote Link to comment Share on other sites More sharing options...
Floydian Posted September 24, 2008 Share Posted September 24, 2008 Re: IE issue cool cool Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.