PHP

LAMP Server Tuning

The drupal site has a page on tuning server performance.  While a few of the tips are specific to Drupal, the majority of them apply to anyone who’s using a LAMP server. Understanding LAMP performance. This LAMP performance study revealed that Apache is bandwidth limited, PHP is CPU limited, and MySQL is memory limited and […]

LAMP Server Tuning Read More »

Using PHP and Subversion

Subversion is a great replacement for CVS and a very productive tool for managing code.  I began using it last year to track my changes and apply them across my sites.  The New Yorg PHP group has a really informative and extensive presentation on using SVN, from setting it up to practical tips for using

Using PHP and Subversion Read More »

FastCGI Resurgence

This is a great read on the history and role of FastCGI given the rise and popularity of “CGI Frameworks”, as the author calls them, like Rails, Django, and Zope. One of those rare entries where I learn a lot from each paragraph. Why does this matter? Because these are large frameworks written in interpreted

FastCGI Resurgence Read More »

Faking Cron with PEAR Cache and date()

If you don’t have access to cron on your server, but you want to run some php code periodically, this is a handy way of doing that using output caching and the date function. This assumes you’ll be using PEAR’s Cache module. Here’s the code, and and explanation. require_once( ‘Cache/Output.php’ );$cache = new Cache_output(‘file’, array(‘cache_dir’=>CACHE_DIR));$cache_id

Faking Cron with PEAR Cache and date() Read More »