Simply processes all .php/php3/php4 files in a given directory and counts the number of PHP/HTML lines and the number of bytes. This of course works with PHP in HTML. Since this
is only an example you could extend it to support directory recursion and more.