12-11-2007, 10:34 PM
|
#5 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
|
Quote:
Originally Posted by ReSpawN
Still some people prefer PHP versions below 5 and some do not think upgrading is wise. I am selling my system for PHP 4 and up, since the market gets a lot bigger that way. Although I advise them to use PHP 5+. The mere fact is, some people/hosts do not wish to upgrade it.
|
I see. But not having decent OOP will take a massive hit on the quality of the code. I don't offer php4 coding services, I've seen no business hit from doing so.
Quote:
|
Next to that, is doesn't accept things like 'public' and 'restricted' functions within the class (designated to a var if I am not mistaken). But still you can use classes. I am using a very large SQL class for all of my queries and sorts.
|
Var is only in PHP5 for backwards compatibility, it is a clone of public. Classes are almost useless without the advanced features php5 brings. The other two permission levels are protected and private, which are both part of php5. I have a tutorial on OOP in PHP5 here.
Quote:
You've given me a bit of insight on this and for that, thanks a lot Village Idiot. :) Hopefully people like Karl, Salathe and Wildhoney will reply as well (read a couple of their articles). Of course the rest, even the less experienced (if there are some ) are invited to reply with constructive advise and criticism.
|
Always glad to help.
|
|
|
|