![]() |
I was playing around with this for a site I'm building, and it occured to me that it would work fine for vB 1.x too, so here you go.
Open your admin/config.php and paste the following code at the end of the file, before the ?> tag. PHP Code:
Once you have installed the code snippet, you can test that it's working by a) trying to access your forums b) inputting your URL here (you need to specify the .php file, rather than just the directory) http://leknor.com/code/gziped.php Of course, you will need to have PHP built with zlib support for this to work. Find out by running a phpinfo() script... |
If you have PHP 4.04pl1, and you want to just compress ALL php on your site, edit your php.ini file to read this:
output_handler = ob_gzhandler Have to have PHP 4.04pl1, and compile it to use zlib... Chris |
Dosn't work for me, I just get a blank screen.
The Site is on Datablocks.net If I set it to 1 it works 2 or above gives me a blank screen :( |
wow! even with it set to 1, the difference was noticed
|
For me it doesn't work with 1 either... :(
|
Quote:
|
|
1 Attachment(s)
Easy! Go to yourdomain.com/forum/admin/index.php?action=phpinfo
You should find something like this: |
I'm sorry to say but I didn't find it...
|
Where can we get zlib?
|
|
thanks
|
Just a little hint for you all...
Don't do this UNTILL you have vB installed and Working. Here's my Directory Structure # 127.0.0.1 |-- www |----root |------vbulletin1 |------vbulletin2 |------vbulletin3 |------vbulletin4 Thats on my local machine. I messed up installs 2 & 3 so i deleted all the files, unzipped and copied over again. Ran the install and got GOBBLE! Then I realised. Just a reminder :p |
Careful, guys. PHP4.0.4pl1 has a memory leak in it's zlib implementation. A lot of heavy-load website have crashed already because of it.
You might wanna wait til it's fixed. |
For what it's worth, I have been watching this carefully and have had no problems with PHP Version 4.0.1pl2
running on FreeBSD 4.2. The method I'm using is placing ob_start(ob_gzhandler); at the top of all my files. |
All times are GMT. The time now is 02:52 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|