PHP

Reactive tree caching

Reactive tree caching

APC is an amazing tool for increasing the performance of PHP scripts. The framework we’re developing makes extensive use of caching to store complex data structures that would be too resource intensive to rebuild often. A lot of template engines produce static files to cache the output of resource intensive database driven systems. This works great but we wanted more flexibility.

Read more…

Easy PHP on Shell

Easy PHP on Shell

A question I see quite often around campus is how to get PHP working on shell. The easy way is to add a shebang to the top of your php file. Simply add one of these lines (for php4 and php5 respectively) to the very top of any php file that you’re going to be using. Make sure there are no spaces or empty lines above the shebang.

Read more…