From: Arno H. <aho...@in...> - 2000-09-30 12:26:24
|
>Subtracting comments, comment blocks and blank lines, I count 2,426 lines >of executable code (and a few html comments) in *php3 with this perl script: Actually, there's a slight flaw in the script: [a-zA-Z0-9]/ && $count++; should include brackets as well. And "*/" lines don't count as comment lines in your script. correcting those two errors I get (without admin/): 4905 lines in total 3108 lines code (63%) 952 lines comment (19%) 821 empty lines (17%) 24 lines not accounted for (mostly closing php tags) There are a total of 170 functions (96 when counting db-interface functions only once), 220 if-statements, 34 for-loops, and 31 while-loops. Finally, "wc *.php3" says: lines words bytes 4905 15526 142812 total /Arno p.s. no, I was not bored ;o) |