WDANZ "Optimising websites" slides
Here are the slides from my talk this afternoon.
Here’s a tip on how to turn on HTTPD compression on your php site.
Option 1) Edit your php.ini file
; Transparent output compression using the zlib library ; Valid values for this option are 'off', 'on', or a specific buffer size ; to be used for compression (default is 4KB) ; Note: Resulting chunk size may vary due to nature of compression. PHP ; outputs chunks that are few handreds bytes each as a result of compression. ; If you want larger chunk size for better performence, enable output_buffering ; also. ; Note: output_handler must be empty if this is set 'On' !!!! ; Instead you must use zlib.output_handler. zlib.output_compression = On
Option 2) If you haven’t got access to the php.ini file. Create this .htaccess file to your home directory to turn on compression.
AddType application/x-httpd-php php .htm .html php_flag zlib.output_compression on