CSS Display not working.

Get help with installation and running PPhlogger 2.2.x here.
Please do not post bug reports or feature requests here.

Moderators: Moderator Team, Development Team

CSS Display not working.

Postby sdjl on Sun Mar 28, 2004 1:20 am

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]
<?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;
?>
[/php]

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

The CVS repository for this file is located here:
http://www.phpee.com/chora/diff.php/css ... 10&r2=1.11

David
User avatar
sdjl
Moderator
 
Posts: 1282
Joined: Mon Nov 17, 2003 1:13 am
Location: London, UK

Return to PPhlogger Support

Who is online

Users browsing this forum: No registered users and 7 guests

cron