peddel Posted February 5, 2009 Share Posted February 5, 2009 Anyone knows a good freeware tool that allows you to analyze ur php code - # lines of code - # blank lines - parts that come back frequently - ... I know one i have to pay for, but 250 euro for a license is to much for me ^^ Quote Link to comment https://forums.phpfreaks.com/topic/143926-analyze-php-files/ Share on other sites More sharing options...
Daniel0 Posted February 5, 2009 Share Posted February 5, 2009 You should be able to do all that using unix command line tools. Quote Link to comment https://forums.phpfreaks.com/topic/143926-analyze-php-files/#findComment-755222 Share on other sites More sharing options...
peddel Posted February 5, 2009 Author Share Posted February 5, 2009 You should be able to do all that using unix command line tools. And what do u mean by that? I am using a windows platform =) and got no clue what u mean by unix commands Quote Link to comment https://forums.phpfreaks.com/topic/143926-analyze-php-files/#findComment-755226 Share on other sites More sharing options...
Daniel0 Posted February 5, 2009 Share Posted February 5, 2009 Well, I mean what I said... E.g. counting blank lines: grep -c '^$' test.txt Number of lines: wc -l test.txt If you do not have access to a GNU/Linux install then you can use cygwin. Quote Link to comment https://forums.phpfreaks.com/topic/143926-analyze-php-files/#findComment-755237 Share on other sites More sharing options...
peddel Posted February 5, 2009 Author Share Posted February 5, 2009 i found a program windows based that gave me those 2 options i want to get into more details now anyway thx for the advice this indeed works also Quote Link to comment https://forums.phpfreaks.com/topic/143926-analyze-php-files/#findComment-755241 Share on other sites More sharing options...
.josh Posted February 5, 2009 Share Posted February 5, 2009 grep -cv '^$' test.txt I'll scream rape... Quote Link to comment https://forums.phpfreaks.com/topic/143926-analyze-php-files/#findComment-755246 Share on other sites More sharing options...
Daniel0 Posted February 5, 2009 Share Posted February 5, 2009 grep -cv '^$' test.txt I'll scream rape... Heh... the v flag wasn't even supposed to be there Quote Link to comment https://forums.phpfreaks.com/topic/143926-analyze-php-files/#findComment-755249 Share on other sites More sharing options...
peddel Posted February 5, 2009 Author Share Posted February 5, 2009 grep -cv '^$' test.txt I'll scream rape... Heh... the v flag wasn't even supposed to be there Humor i do not get ^^ Quote Link to comment https://forums.phpfreaks.com/topic/143926-analyze-php-files/#findComment-755261 Share on other sites More sharing options...
trq Posted February 5, 2009 Share Posted February 5, 2009 grep -cv '^$' test.txt I'll scream rape... Hehe... Quote Link to comment https://forums.phpfreaks.com/topic/143926-analyze-php-files/#findComment-755286 Share on other sites More sharing options...
.josh Posted February 5, 2009 Share Posted February 5, 2009 Humor i do not get ^^ What's not to get? He's trying to frisk me. Quote Link to comment https://forums.phpfreaks.com/topic/143926-analyze-php-files/#findComment-755321 Share on other sites More sharing options...
nrg_alpha Posted February 5, 2009 Share Posted February 5, 2009 grep -cv '^$' test.txt I'll scream rape... Scream all you want.. here in cyberspace, no one hears you scream.. EDIT - Unless you include some kind of audio file Quote Link to comment https://forums.phpfreaks.com/topic/143926-analyze-php-files/#findComment-755357 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.