whenpenguinsattack.com

Thursday, February 02, 2006

improving php execution speed in windows with php.ini

adding the following two lines to php.ini can make your php scripts run run faster and also save you in bandwidth.

zlib.output_compression = On
zlib.output_compression_level = level

level can be from 1-9. This is a tradeoff between speed and size. The higer compression levels create files that are smaller in size (which will save you in bandwidth), but they take more processing time to de-compress/compress. Most web-browsers support this standard. It is best to choose different numbers to find out which one will work best for your server.

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home