![]() |
|
#1
|
||||
|
||||
When to use gzipI got this script from a site somewhere....
this is just the header.. PHP Code:
But, do i need to check the browser? your gzip test script doesn't work when i put http://69.49.231.162/index.php in it. but when you look at the headers from a normal browser it does work. is checking for the accept_encoding enough? |
|
#2
|
||||
|
||||
|
If the gzip test says that the web page is not gzipped, chances are that it is not.
I only know of one bug so far (with gziptest) and that was something that was to do with the percentage calculations for 'special' web pages. I don't know much about these pre-PHP version 4.0.6 hacks for compressing your web pages, but with .htaccess php_flag and ob_start('ob_gzhandler') methods, the script will send compressed or non-compressed output to a browser automatically - otherwise I would have had a serious mess with all the search-engine bots by now. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
||||
|
||||
|
I'll remove the browser checks and also the php version checks...
i'll add 1 check for the version... just i case. btw, do you know what i think about your script when i saw http://Leknor.com/code/gziped.php in my log? I think your version looks nicer |
|
#4
|
||||
|
||||
|
That was ME
... and about my script looking better - it's only normal since mine is newer. Wait till you see his next upgrade... __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Prepping for deployment by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| zlib and/or gzip | SloppyGoat | Apache Web Server Forum | 4 | 17-Dec-2003 14:22 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The