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
I was getting lost one some web page and read about PHP code obfuscators. There are a couple out there that are pretty expensive… so instead of taking care of immediate responsibilities, I wrote one.
Here’s the URL: http://riceball.com/misc/php-obfuscator/
Continue reading Yet Another PHP Obfuscator
An explanation of how a tracking pixel works, with some sample PHP code that implements a simple event tracking pixel.
Continue reading How a Tracking Pixel Works
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
I downloaded Symfony and got this error. I rushed to build a new PHP, but that wasn’t the solution.
Continue reading Uncaught PharException: zlib extension is required for gz compressed .phar file