Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2007-01-29, 07:35 PM   #1
JackDaniel's
I like work, it fascinates me, I can sit and look at it for hours...
 
JackDaniel's's Avatar
 
Join Date: Dec 2006
Posts: 3,217
Send a message via ICQ to JackDaniel's
.htaccess

Have you ever used the GZIP compression tehnology ?

php_flag zlib.output_compression On
php_value zlib.output_compression_level 5

Adding those lines into your .htaccess file should speed up the php scripts on your server, if your host allows GZIP compression !

But I also heard that this could affect some search engine rankings
__________________
Submit Your Sites : Get Porn Links
JackDaniel's is offline   Reply With Quote
Old 2007-01-29, 09:46 PM   #2
Infrastruct
Internet! Is that thing still around?
 
Infrastruct's Avatar
 
Join Date: Jan 2007
Posts: 3
That may have been a problem a while back but not any more, the search engine bots are aware of compressed content now and will accept it.
Infrastruct is offline   Reply With Quote
Old 2007-01-29, 10:06 PM   #3
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
The problem with doing it with php is twofold. One, it doesn't easily support chunked output. Secondly, it adds some buffering to the page.

Lets say you have a page that consists of 100k of HTML. With Apache's internal gzip/deflate, it grabs a chunk, compresses it, sends it, grabs another chunk, sends it, etc.

With php's gzip, it takes the entire page and sends it as one chunk. Remember, until the browser has the html, it doesn't know what external scripts, css, images, etc need to be rendered in the page. The result is that you can't even start rendering a page until the complete gzipped page is received. The net effect is a 2-3 wait, unzip, slam the html on the screen, then start fetching the images, css, etc.

It shouldn't affect search engine rankings. Google, et al all seem to have no problem with it.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2007-01-29, 11:46 PM   #4
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
That's why I had a multi-directional hyper-threading flux capacitor with counter-sunk grommet resurfacing installed on my server. Of course, my box runs Seneca, not Apache, so there may be 7-8 flourescent scan sequential embarkment.
__________________
Click here to purchase a bridge I'm selling.
Useless is offline   Reply With Quote
Old 2007-01-29, 11:52 PM   #5
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
http://delorean.com/dmcstore/onlinestore-search.asp

Just in case you need a spare flux capacitor, just type in 'flux' in the search box and note the part number.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2007-01-30, 01:54 AM   #6
Maj. Stress
Progress rarely comes in buckets, it normally comes in teaspoons
 
Maj. Stress's Avatar
 
Join Date: Jun 2005
Location: Dark Side Of Naboo
Posts: 1,289
and it's free!
Maj. Stress is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:43 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc