Ayon Posted April 3, 2009 Share Posted April 3, 2009 i wasn't sure where to put this, so if it's in the wrong place just kick it wherever you want Well as I stated in the topic its about PHP Application ... i'm currently working on a little framework for personal use... ive been scanning trough several frameworks to get ideas on how to set up the directories etc, and i often see a folder called something simular to "classes" and one called "lib" or something close... baisicly my question is... what's the difference between a class file and a lib file? cuz from what i've seen both "file types" contains classes.. but also, some lib files only contains only functions... I'm confused ??? Thanks in advance - Ayon Link to comment https://forums.phpfreaks.com/topic/152475-solved-php-application-classes-and-libraries/ Share on other sites More sharing options...
MadTechie Posted April 4, 2009 Share Posted April 4, 2009 class = classes (OOP) lib = Library (bunch of simpler functions) a lib maybe a set of common functions like a simple function to check if an email is a valid format, think of a lib as common everyday helper functions, of course these can contain classes as well! but if it gets too complex i normally give it its own files and class a class is used for OOP (handling of objects) Link to comment https://forums.phpfreaks.com/topic/152475-solved-php-application-classes-and-libraries/#findComment-800904 Share on other sites More sharing options...
Maq Posted April 4, 2009 Share Posted April 4, 2009 Classes PHP Libraries Link to comment https://forums.phpfreaks.com/topic/152475-solved-php-application-classes-and-libraries/#findComment-800946 Share on other sites More sharing options...
MadTechie Posted April 4, 2009 Share Posted April 4, 2009 I assumed his was talking about PHP Application Libraries either way you have both details! Link to comment https://forums.phpfreaks.com/topic/152475-solved-php-application-classes-and-libraries/#findComment-800966 Share on other sites More sharing options...
Maq Posted April 4, 2009 Share Posted April 4, 2009 I assumed his was talking about PHP Application Libraries either way you have both details! W/e, they are just general terms. Link to comment https://forums.phpfreaks.com/topic/152475-solved-php-application-classes-and-libraries/#findComment-800968 Share on other sites More sharing options...
Ayon Posted April 4, 2009 Author Share Posted April 4, 2009 that's for good feedback.. i finally understand the difference Link to comment https://forums.phpfreaks.com/topic/152475-solved-php-application-classes-and-libraries/#findComment-801186 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.