|
jrotate pro 2.0 - User Guide and FAQ
Screenshots - More Details
- A PHP script will be served at least 5-10 times slower than a static HTML page by Apache. Try to use more static HTML pages and fewer scripts.
- Enable the compression of HTML by putting in your php.ini:output_handler = ob_gzhandler
- Install a PHP caching suite. I have personally used zend (commercial), turck mmcache, and ioncube, and they all work very well.
- Switch from file based sessions to shared memory sessions. Compile PHP with the Cwith-mm option and set session.save_handler=mm in php.ini. This can drastically improve session management performance.
- Another caching technique that can be used when you have pages that don't change too often is to cache the HTML output of your PHP pages. (a list of template solutions is posted within one of my previous articles).
- Use output buffering (See ob_start). This will speed up your PHP code by 5-15% if you frequently print or echo in your code.
- On Windows, FastCGI is the highest performance way of running PHP with Apache.
- In PHP4, objects and arrays should be passed to functions by reference (with &), and everything else by value. In PHP5, objects are already passed by reference.
- Don't use images when text will do. Reduce your image sizes with a software like MacroMedia Fireworks or imagemagick.
- If possible, Run your database server on a different machine. If all static content is served from another server, then you can turn off KeepAlives in httpd.conf to speed up client disconnects.
Screenshots - More Details
|