Tuning PHP

Last modified: July 31, 2009 - 11:55
  1. If you have CPU cycles to spare, or if bandwidth is a more constrained resource than CPU cycles, you can add the following to php.ini:

    output_handler = ob_gzhandler

    A comment in php.ini explains:

    "You can redirect all of the output of your scripts to a function. For example, if you set output_handler to 'ob_gzhandler', output will be transparently compressed for browsers that support gzip or deflate encoding. Setting an output handler automatically turns on output buffering."

    This functionality is further described here.

  2. very interesting presentation from a PHP developer
  3. Increase PHP memory limit

Additional resources:

 
 

Drupal is a registered trademark of Dries Buytaert.