Friday, June 26, 2009

PHP performance tips by google

1) Upgrade your version of PHP

2) Use caching

3) Use output buffering

4) Don't copy variables for no reason.

5) Avoid doing SQL queries within a loop

6) Use single-quotes for long strings.

7) Use switch/case instead of if/else.