|
Comments for: argerich20010125
| Message # 1008768: |
|
Date: 12/20/01 08:29
By: redHairedBitch Subject: script changes to reduce calculation time (thats maybe a point of idiology) you should replace $contents = substr($contents, 0, strlen($contents)); with $contents = substr($contents, 0, $Size - 4); after this i realized that the script in general is not working as well as it should: ie continous reloads and opera sayd that the information may be corrupt. so i let gzip do the crc job and my script is just doing header("Content-Encoding: gzip"); echo "\x1f\x8b\x08\x00\x00\x00\x00\x00"; $contents = gzcompress($contents, 9); echo "$contents"; and for browser compatiblity (maybe ie sends "gzip, deflate" but sure opera does not do so) but gzip and deflate is still supported. you should check for gzip and for deflate not for both at once: if(ereg('gzip',$HTTP_ACCEPT_ENCODING)&&ereg('deflate',$HTTP_ACCEPT_ENCODING)) in the end it is a very nice extention, a table based system transfers 27k even if the whole page is about 470k so it is right helpful on slowdsl connections regards |
Previous Message | Next Message |


