NameSilo

Output buffering with ob_gzhandler and excluding certain filetypes

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

Crusader

Established Member
Impact
6
Apache/php4

I have output_buffering set to on (ob_gzhandler) in my php.ini and I'd like to know how to get it to exclude .js/.zip/.pdf files when compressing things.

Does anyone know of a way?

I also have root access so I can change php.ini, httpd.conf, or anything else.

Thanks.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
you could always set it to off in php.ini (or in a .htaccess file)and when you do plan on using it use ini_set to turn it on in the script.
 
0
Close
filth@flexiwebhost said:
you could always set it to off in php.ini (or in a .htaccess file)and when you do plan on using it use ini_set to turn it on in the script.

Does output_buffering work through ini_set? I remember I once tried to use it to turn it off in a script but to no avail.

I ask this because I would have to add it to a lot of files just to test it (lol).
 
0
Close
No sorry just double checked output_buffering can only be set in the following:-

php.ini
.htaccess
httpd.conf

You could have your scripts that require it turned off in a seperate folder and use a .htaccess
 
1
Close
filth@flexiwebhost said:
No sorry just double checked output_buffering can only be set in the following:-

php.ini
.htaccess
httpd.conf

You could have your scripts that require it turned off in a seperate folder and use a .htaccess

Thanks, I used an .htaccess and set the handler to null and the buffer to Off.
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back