archives Articles

  • benchmarking .htaccess performance

    One of the common tips to increasing Apache performance is to turn off the per-directory configuration files (aka .htaccess files) and merge them all into your main Apache server configuration file (httpd.conf). Jeremy raised an interesting question about when the performance loss caused by using many htaccess files is offset by the ease of maintenance. He's arguing - and I agree - that it makes sense to keep the configuration locally inside .htaccess files, despite the performance loss as these are easier to maintain....

    continue Continue...

  • process a url query string in PHP

    A PHP function to parse a url and extract its arguments.

    continue Continue...

  • Wordpress Projects List plugin

    Basically, I wanted to list various projects I've worked on, so I built this very simple projects list plug-in for wordpress.

    continue Continue...

  • Protecting MySQL from SQL Injection Attacks with PHP.

    This is intended as a brief guide to protecting your MySQL database from SQL injection attacks. Unfortunately, a large amount of the code that I've seen written by people on forums, and in countless crappy PHP tutorials lurking around on the net, and in the many websites that display the "magic breeding slashed-quote" show that many people just do not understand what's going on and how to protect themselves against SQL injection attacks.

    continue Continue...