- Series: Solutions
- Paperback: 392 pages
- Publisher: Apress; 1st ed. edition (August 21, 2008)
- Language: English
- ISBN-10: 1430210117
- ISBN-13: 978-1430210115
- Product Dimensions: 7.5 x 0.9 x 9.5 inches
- Shipping Weight: 1.9 pounds (View shipping rates and policies)
- Average Customer Review: 28 customer reviews
- Amazon Best Sellers Rank: #1,313,767 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
PHP Object-Oriented Solutions 1st ed. Edition
Use the Amazon App to scan ISBNs and compare prices.
Fulfillment by Amazon (FBA) is a service we offer sellers that lets them store their products in Amazon's fulfillment centers, and we directly pack, ship, and provide customer service for these products. Something we hope you'll especially enjoy: FBA items qualify for FREE Shipping and Amazon Prime.
If you're a seller, Fulfillment by Amazon can help you increase your sales. We invite you to learn more about Fulfillment by Amazon .
Frequently bought together
Customers who bought this item also bought
Customers who viewed this item also viewed
About the Author
David Powers is a PHP 5.3 Zend Certified Engineer and author of a series of highly successful books on PHP, including PHP Solutions: Dynamic Web Design Made Easy, Second Edition (friends of ED, ISBN-13: 978-1-4302-3249-0) and Adobe Dreamweaver CS5 with PHP: Training from the Source (Adobe Press, ISBN-13: 978-0-321-71984-3). As a professional writer, he has been involved in electronic media for more than 30 years, first with BBC radio and television and more recently with the Internet. His clear writing style is valued not only in the English-speaking world; several of his books have been translated into Spanish and Polish.
What started as a mild interest in computing was transformed almost overnight into a passion, when David was posted to Japan in 1987 as BBC correspondent in Tokyo. With no corporate IT department just down the hallway, he was forced to learn how to fix everything himself. When not tinkering with the innards of his computer, he was reporting for BBC TV and radio on the rise and collapse of the Japanese bubble economy. Since leaving the BBC to work independently, he has built up an online bilingual database of economic and political analysis for Japanese clients of an international consultancy.
When not pounding the keyboard writing books or dreaming of new ways of using PHP and other programming languages, David enjoys nothing better than visiting his favorite sushi restaurant. He has also translated several plays from Japanese.
Author interviews, book reviews, editors picks, and more. Read it now
Top customer reviews
There was a problem filtering reviews right now. Please try again later.
I've read 7 out of 9 chapters. Chapter 8 and 9 are in the back burner for now, not because it's boring, but I think it's more optional or things to learn later. My background is C/C++/VHDL/MIPS/ and whatever else I forgot to mention.
Codes in the book works!
Almost all of it. There's a small typo on page 159, the code assign a value to an array without specifying the index, so I believe that rewrite the array. Checking it with the source code, which you can download from the website, the author actually have something different. Anyway, took 3 hours to debug 300 lines or so, learned to debug better yay. There are so much codes in the book, that it gives you chances to practice the OOP that the author is trying to teach you, and it's very applicable to real world coding.
Tone and pace:
The tone and the pace the author goes throughout the book is straight forward. Whenever he skipped something he would state that you should have learned it or go research it (the regular expression functions), which is understandable because this isn't a "let's teach you php as if you know nothing about it."
You learned to extend/inherit the php's offical date class. Learn how to extend the exception library, neat. You basically learn how to extend and customize php built in libraries or create a class to wrap php functions, facade pattern, and make it tailor to you, so that you can reuse it in your next project, and make your life easy. OOP, ahh such a beautiful concept.
The last three or so chapters are more advance, XML, SPL (standard php library), RSS, and such. What really sweet is the later chapter reuses the classes that you've code in previous chapters. So it shows the strength of OOP (reusability) and such.
On page 195, it's out dated the function does return a message so the if else statement isn't needed but meh.
On page 239 regarding XML namespace, since php 5.3 came out is there another way to do it? Shrug, it doesn't matter that much the way the author does it in the book currently isn't that bad. I wish the author spent his time talking more about the concept of namespace. I ended up googling that.
Oh, the clone subject is mention but isn't use in real world coding. That's a complaint I guess. I wish there was a least a 300 lines code project with the clone keyword in it. I believe it was only mention once about dvd and whatnot code. Oh well. Maybe it's in the last 2 chapters?
Oh debugging is always fun. On the date class when I had to reuse my date class for the XML chapter, the date output had the day and the month together without a space in between it. Ugh... had to debug that 400+ lines -_-. Learned to start debugging all output functions first haha.
Coding Standard and Documentation:
What's also nice is there's a coding standard, the Zend Framework coding standard, so if you don't have a coding style yet, at least you got one now. The phpDocument is pretty sweet, teaches you to document your code so other people can read it. Anyway, the installation of phpDocument isn't exactly there, so google it.
This is THE book where I've learned OOP for PHP. It's a great book and I enjoyed it a lot. No book is perfect but this book set out to teach you something, and it does that well enough to get almost ALL of the points across to ya. I recommend this book to any one that knows PHP but knows nothing about OOP. If you want to make your life easy, have maintainable codes, and reusable codes, this book will teach you it.
Update July 19, 2010:
Basically teaches you how to emulate multiple inheritance with interfaces.
You end up extending a class and at the same time implementing two interfaces (countable & iterator).
-The closing xml tag code explanation could have been better if the author refer to it being similar to a "stack". The most current XML element tag you created is the first thing that you close.
-The last test code to test out your class work or not will always output, "A problem occurred." Because the flush() function returns nothing! It's not in the errata page. A little tweak and you can have it return a bool flag if you wanted to. This isn't reported in the errata page and you can see it's an error because the official source code will do the same thing.
-Even though the author had you implementing the countable interface you don't use it at all. You can however test it out yourself. Just apply the class instance to the function .count(). So it's not that big of a deal.
Anyway, I actually found the errata page. I have to say then most of the code works if it didn't then it's either syntax or the elusive logic error.
i highly recommend the book for beginning or intermediate developers trying to improve their depth of understanding related to OOP. if you're already an expert, then you might feel more critical; who knows. however, if you are truly an 'expert' maybe you don't need any books at all ;)
so far this book has taken me one step closer to a guru level knowledge of PHP. at the same time, i now have more depth in my comprehension of OOP-- a 'best practice' that applies to many languages, not just PHP.
some say use shorthand ? instead of <?php some say NEVER use that shorthand.
The point is this cannot be the only book for PHP you have, like the David Powers Dreamweaver book can be.
I'm still looking for the elusive "BEST and ONLY book you need for PHP".
This is a good addition to other PHP books, but if you're looking for PHP to MYSQL connectivity stuff...the dreamweaver book has a clearer and better method you'll understand. I found the connectivity stuff in this book confusing and didn't work right. And i can't figure how he could have written these two books.
I would buy his Dreamweaver book for PHP/MYSQL stuff and find another book for other PHP alone stuff.
Most recent customer reviews
At first, I was unable to download code from the website because website is...Read more