I have installed phpwiki 1.3.4 on my linux with
Apache 2.0.44
PHP 4.3.1
MySQL 3.23.41
I can install the database and initialize ist. But when I call the index.php in my browser I get a lot of unreadable hex characters.
When I start the php standalone the result is an correct HTML-page.
I think the problem is the LANG or CHARATER setting, but I have no idea what I can do.
Is there an problem with Apache 2?
Thanks for any help
Steffen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Another fix is to fiddle with the "COMPRESS_OUTPUT" option - define it to 'false' in index.php and that should fix the problem without monkeying with display.php
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have installed phpwiki 1.3.4 on my linux with
Apache 2.0.44
PHP 4.3.1
MySQL 3.23.41
I can install the database and initialize ist. But when I call the index.php in my browser I get a lot of unreadable hex characters.
When I start the php standalone the result is an correct HTML-page.
I think the problem is the LANG or CHARATER setting, but I have no idea what I can do.
Is there an problem with Apache 2?
Thanks for any help
Steffen
I have seen the same problem. If I try to access the same URL with 'wget' or 'lynx' I see the page without a problem, but with Mozilla I see garbage.
I came to the forum today to try to see if anyone else had seen this problem, and found a solution.
Seems the problem relates to the flush() function. If you go into display.php and comment out the flush() calls then things look OK.
I suspect eithor PHP or Apache has an uninitialized variable somewhere.
same problem here, i comment out flush(), but no change. i analyzed the raw stream:
this is the gziped index.php, the i unzip this file, it looks fine :/
this must be a problem of phpwiki & apache2, beause others sites with active mod_gzip etc looks fine.
I think this is the same problem I had. If so, you need to edit /lib/display.php
There are two lines in the code which say:
header("Content-Type: text/html; charset=" . CHARSET);
Try adding inserting this line before both of those:
header("Content-Encoding: gzip");
-PH
Another fix is to fiddle with the "COMPRESS_OUTPUT" option - define it to 'false' in index.php and that should fix the problem without monkeying with display.php