NETTUTS.com has offered three quick tips of how you can use PHP to speed up your site (and no, its not PHP micro-optimizations this time).
These days, with broadband connections the norm, we don't need to worry as much about internet speeds or the filesize of our pages. However, that's not to say that we still shouldn't do so. If you wish to reduce the load times on your server, decrease the number of HTTP requests, and go that extra bit for your visitors, there are a few techniques that you can use. This tutorial covers a number of PHP tricks, including caching and compression.
Most of their three tricks don't even involve modifying your PHP code - here's the list:
- Combining several CSS files into one before pushing it out to the browser (amalgamation)
- Removing excess whitespace (sometimes substantial) from your HTML and CSS before sending
- Caching the output of your application with PHP to keep the load down