Search Results

bootstrap php code

Let’s discuss how to bootstrap php code – funnel the HTTP requests into single php script, which handles the web application. First thing you need to do is to add this rewrite code to your .htaccess file [...] It looks relatively easy to bootstrap php code, but remember you should check very carefully all incoming data to secure your application.

PHP opcode caches – require_once is slow

cache, opcode, PHP, require_once, slowIf you got a large OO PHP application, you usually come with many files included using “require_once()”. Different test from different sources shows that using require_once works up to 4 times slower than require. Basically, all known PHP opcode caches suffers from this issue (APC, XCache, ea/mmcache).

There’s patches committed in APC that [...]

Alternative PHP Cache (APC) and __autoload() interoperability

php cache apc autoload The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. It was conceived of to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.

Many developers writing object-oriented applications create one PHP source file per-class definition. Using __autoload() helps to overcome one of [...]