PHPee.com PHP development forum
CSS Display not working.

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    phpee.com Forum Index -> PPhlogger Support
View previous topic :: View next topic  
Author Message
sdjl
Moderator


Joined: 17 Nov 2003
Posts: 1008
Location: London, UK

PostPosted: Sun Mar 28, 2004 12:20 am    Post subject: CSS Display not working. Reply with quote
PPHLogger uses dynamic CSS generation to aid in "themeing" of the logger software.
When some users had zlib.output_compression turned on in their php.ini setup file, the CSS generation would get compressed and corrupt during transmission to the browser.

This results in what some people call, "inverting". Basically no style is attached to the HTML due to the CSS not being read correctly by the browser.

The following code is a fix implemented which should curtail any problems with CSS generation becoming corrupt. This needs to be applied to /css/get_css.php

PHP:
// workaround for problems with zlib.output_compression = On
@ob_end_clean();
@
ini_set('zlib.output_compression', 'Off');
header('Content-Transfer-Encoding: none');

header("Content-Type: text/css");
header("Pragma: no-cache");
header("Expires: 0");
header("Content-Length: ".strlen($css_style));
//print "\r\n\r\n";
print $css_style;
?>


The full post with this fix can be viewed here:
https://phpee.com/forum/viewtopic.php?p=8713#8713

The CVS repository for this file is located here:


David
_________________
-----
Free Logger Accounts | PPHlogger Manual | PM Me
Back to top
View user's profile Send private message Visit poster's website
Post new topic   This topic is locked: you cannot edit posts or make replies.    phpee.com Forum Index -> PPhlogger Support All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB
Theme design based on Team 101 Designs, modified by Philip Iezzi