Learn PHP 5 - Starting Point

liunx

Guest
Hi

I am currently developing in PHP4 (all procedural) and I am keen to begin to pick up PHP5 and start understanding how the object orientated world works. Most of the stuff I do is small to medium websites and for that reason I (at this point) never see myself from moving away from the procedural approach, and until I learn I can't see how OOP will help me build these websites in a better way.

So, rather than typing 'PHP5 introduction' into Google, can someone provide a point of reference, or websites that you have used and can rate as informative and credible so that I can start reading and use as the basis of my new quest for knowledge!

I am literally talking about starting from the beginning, creating database connections and rertrieving data from the database and displaying on my web pages.

Thanks for reading.Before getting into any PHP specifics, I'd suggest starting with Sun's "Oject-Oriented Programming Concepts" tutorial (<!-- m --><a class="postlink" href="http://java.sun.com/docs/books/tutorial/java/concepts/index.html">http://java.sun.com/docs/books/tutorial ... index.html</a><!-- m -->) in order to learn the basic concepts of OOP. Even though the few code examples there are in Java, the basic syntax is not all that different, and the concepts are the same. Then you can start looking at the PHP5 OOP section of the manual (<!-- m --><a class="postlink" href="http://us2.php.net/manual/en/language.oop5.php">http://us2.php.net/manual/en/language.oop5.php</a><!-- m -->) and maybe something like Zend.com's PHP 101 section on OOP (<!-- m --><a class="postlink" href="http://devzone.zend.com/node/view/id/638">http://devzone.zend.com/node/view/id/638</a><!-- m -->). I can also highly recommend Matt Zandstra's PHP Objects, Patterns, and Practice (<!-- m --><a class="postlink" href="http://www.amazon.com/PHP-Objects-Patterns-Practice-Second/dp/1590599098">http://www.amazon.com/PHP-Objects-Patte ... 1590599098</a><!-- m -->) to really get into some OOP design concepts and other related issues in developing PHP 5 applications.

PS: Once you get the hang of OOP coding, you'll want to use it, not just feel like you should use it.PS: Once you get the hang of OOP coding, you'll want to use it, not just feel like you should use it.

I think you then end up relying on it. I find it hard to write in a procedural way now, it feels so.... messy and you just can't do so many things that I want to do.
 
Back
Top