PHP Partial Evaluation and Functional Style Programming for Nested Arrays

An example of partial application in PHP, using closures to implement functional-style programming. This technique helps to collapse loops into functions, and shorten code.

This article is based on an older article that has been cleaned up and improved.

Continue reading PHP Partial Evaluation and Functional Style Programming for Nested Arrays

Extremely Tiny Application Firewall Class

This is a small IP address blocking “firewall” for an old PHP based website. It’s totally basic, with no features at all. This is for those annoying situations when old software contains security holes, and you find out in the logs, when you see some queries with a long string of SQL-like code.

Continue reading Extremely Tiny Application Firewall Class