I recently ran across the need to count the number of lines in a PHP application. So I quickly wrote the script below to do that.
It counts both the number of PHP lines(counted by the semi-colon “;”) and the total number of lines. If you want to count ALL lines, not just php files, remove …
