neel_basu Posted August 10, 2007 Share Posted August 10, 2007 I need a software that does the following function name() { } to function name(){ } Does anybody knows anything that can do this recursively in a Directory on all .php files ?? Link to comment https://forums.phpfreaks.com/topic/64209-tidy/ Share on other sites More sharing options...
dbo Posted August 10, 2007 Share Posted August 10, 2007 I like the first one better. It makes it easier to match brackets imo But know I don't know of any particular software that would do this, though I have seen similar stuff done. Link to comment https://forums.phpfreaks.com/topic/64209-tidy/#findComment-320095 Share on other sites More sharing options...
neel_basu Posted August 10, 2007 Author Share Posted August 10, 2007 If I cnvert the 1st one to 2nd it would save 1 Byte per function , If, else, class, switch....... I've ~74 files full of functions and classes and if's, else's ...... and its 974 KB all total think If I can convert all if, else, ...... in this how much size will be decreesed. Link to comment https://forums.phpfreaks.com/topic/64209-tidy/#findComment-320100 Share on other sites More sharing options...
dbo Posted August 10, 2007 Share Posted August 10, 2007 Wow... uh. It's just my opinion but I doubt you'll get any noticeable performance boosts... and you surely aren't concerned about saving disk space? Link to comment https://forums.phpfreaks.com/topic/64209-tidy/#findComment-320107 Share on other sites More sharing options...
neel_basu Posted August 10, 2007 Author Share Posted August 10, 2007 I of cource need to think about saving diskspace and lower teh package size. Link to comment https://forums.phpfreaks.com/topic/64209-tidy/#findComment-320110 Share on other sites More sharing options...
dbo Posted August 10, 2007 Share Posted August 10, 2007 I'd be surprised if you even save 500k doing that? Are you running machines from the 80s cause disk space is cheap these days! Link to comment https://forums.phpfreaks.com/topic/64209-tidy/#findComment-320112 Share on other sites More sharing options...
neel_basu Posted August 10, 2007 Author Share Posted August 10, 2007 The thing about which I am talking is a PHP librery zigmoyd PHP librery at http://zigmoyd.net what you think can you consider a librery 974 KB Space ?? where its current version is too less than that. if the question is why its so big the answer is. it offers so many things even it can do the most secure magical thing that Your Images , JS , CSS files are completely (98% cause nothing is 100% in the world) secured and no user's can copy and use the image , JS, CSS or any creative products from your sites. Link to comment https://forums.phpfreaks.com/topic/64209-tidy/#findComment-320118 Share on other sites More sharing options...
dbo Posted August 10, 2007 Share Posted August 10, 2007 Ever seen a Microsoft library for anything? A 1MB library that offers me the world I'd be willing to download. I think you're reaching by wanting to save a handful of bytes per file. Link to comment https://forums.phpfreaks.com/topic/64209-tidy/#findComment-320119 Share on other sites More sharing options...
neel_basu Posted August 10, 2007 Author Share Posted August 10, 2007 I dont use MS windows . Lets come back to the point. Link to comment https://forums.phpfreaks.com/topic/64209-tidy/#findComment-320121 Share on other sites More sharing options...
dbo Posted August 10, 2007 Share Posted August 10, 2007 I don't either but I have in the past. Goodluck. Link to comment https://forums.phpfreaks.com/topic/64209-tidy/#findComment-320124 Share on other sites More sharing options...
neel_basu Posted August 10, 2007 Author Share Posted August 10, 2007 so what do you think 974 KB is considerable ?? Link to comment https://forums.phpfreaks.com/topic/64209-tidy/#findComment-320126 Share on other sites More sharing options...
dbo Posted August 10, 2007 Share Posted August 10, 2007 I don't know what all is in your library but I'd consider 1M for 75 files acceptable. Especially if it has as many features as you say. Link to comment https://forums.phpfreaks.com/topic/64209-tidy/#findComment-320128 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.