Why is everyone attacking php? Many great sites run away. At least until they get big enough to merit a major overhaul.
99% of the Internet just throws out sites that don’t get much traffic compared to sites like facebook or amazon, so why should they learn the language more complex, stable or strict if php gets the job done in a cost-effective way that is no less stable or is it safe for what is needed?
Most of the sites I create run away from Kohana - branches from codeigniter. Both are helpful. Who cares if CI uses php4. What if you were hired by a web firm with archaic sites? Guess what - you need to know php4. This complaint is similar to the fact that you no longer need to know what you were offering html ... until you have to develop and code a newsletter template for any large company. So what? Crash course with Google search queries?
I say the correct approach to using PHP is to follow the examples. Yes, Wordpress has some terrible habits, but it works and is only one of the most successful platforms. What does this tell you?
I would say that you could learn a lot from a structure like Kohana - and even CI - since both have decent security methods that aren't hard to follow. Things like database crash and xss filtering. This will bring you into OO programming if you are not familiar, and both have a decent user base so that you are not stuck with no answers.
Do not let these guys scare you. PHP is a good move for beginners. In the end, something like Java or the C lens will be more useful for desktops and applications, but find out when you get there.
Kai qing
source share