[continue from previous post] 4. Use an op-code cache/accelerator (Apc, XCache) PHP is very fast but it’s not compiled. A op-code cache helps. See this comparison as an example of what could be the performance increase. That does not mean we can skip the other optimisation, code bottlenecks should be removed anyway. Optimising code is [...]
Archive for the ‘Optimization and security’ Category
Optimising Zend Framework applications (2) – cache pages and PHP accelerator [updated]
Optimising Zend Framework applications (1) – cache db objects, PHP code profiling and optimisation
I’m optimizing some zend framework applications these days and I’ve been reading, researching, optimising and measuring results. Some links to read before: Optimising a Zend Framework application – by Rob Allen – PHPUK February 2011 Profile your PHP application and make it fly – by Lorenzo Alberton – PHPNW 9 Oct 2010 The optimisation process [...]
Automatic caching of Zend_Db (or any object) calls
I’m working on a personal Zend framework application that uses Zend_Db_Table_Abstract classes to get data from the database. Each class has its own methods (getall, getXX, getYYY) etc… My need was having all those method calls (around the code) automatically cached. The first solution in my mind was a general wrapper (container) class that uses [...]
Improve performances of any web site: cache pages with Zend Framework
Zend Framework is decoupled, so it’s possible to use only the needed features. I had to improve the performances of an old site, with no cache at all. Changing all the database/file_get_contents requests would have been a long process, so I decided to enable the cache of the web pages with Zend Framework  FrontEnd Page Cache [...]
PHP security: input validation and XSS
for lots of reasons, security included, it’s very important to validate all user input and protect our application from intentional or accidental wrong inputs. First of all, here are some advices don’t use register_globals ! A malicious user may change value of script variables simply modifying the query string don’t use $_REQUEST: possibile loss of [...]
RSS Feed
Twitter
Posted in
