Class and Php
Posted: Fri Mar 25, 2005 5:40 pm
I havent used classes a lot before, but I got an info from my friend that using classes is much, much faster and more economic than using the database ( he didn't gave me the exact example, but my question follows ).
Because I intend to make some search engine - need a lot of resource load cutting, are the classes a good thing to use. I would use them for comparison as my mostly used tables from the DB, and for string and security checks of input type data.
And one more thing - as I mentioned I'm very new to C., can you make classes to represent hierarchical structure or IF-ELSE structure - something like if this parameter is 1, go to this class etc...
No code is needed, just a quick tip because I don't actualy know WHAT ARE CLASSES USED FOR - for what they are best suited for, and should I choose between the lots of CLASSes and PHP coding - or MySQL DB queries and tables.
Direct help or pointing to some GOOD ( or better ) on-line sources are all welcome.
Thanks Ahead !
P.S.
Why did you switch to this INPUT text design - the former didn't make my eyes hurt while typing.
Because I intend to make some search engine - need a lot of resource load cutting, are the classes a good thing to use. I would use them for comparison as my mostly used tables from the DB, and for string and security checks of input type data.
And one more thing - as I mentioned I'm very new to C., can you make classes to represent hierarchical structure or IF-ELSE structure - something like if this parameter is 1, go to this class etc...
No code is needed, just a quick tip because I don't actualy know WHAT ARE CLASSES USED FOR - for what they are best suited for, and should I choose between the lots of CLASSes and PHP coding - or MySQL DB queries and tables.
Direct help or pointing to some GOOD ( or better ) on-line sources are all welcome.
Thanks Ahead !
P.S.
Why did you switch to this INPUT text design - the former didn't make my eyes hurt while typing.