Dynadot โ€” .com Registration $8.99

Output buffering with ob_gzhandler and excluding certain filetypes

Spaceship Spaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
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
•••
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
•••
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
•••
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
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back