Wednesday, December 30, 2009

PHP code optimisation tips


  • No inline css
  • Try to avoid inline javascript code
  • Apply Caching Techniques like customized cache, mem cache.
  • Avoid calculating count of array in for loop store it in variable and use that variable
  • Avoid using autolaod
  • Prefer to use include and reuqire instead of require_once and include_once
  • Array key should be quoted in single or double quotes.

No comments:

Post a Comment