Advanced PHP Programming

Product Description
Over the past three years PHP has evolved from being a niche language used to add dynamic functionality to small sites to a powerful tool making strong inroads into large-scale, business-critical Web systems.The rapid maturation of PHP has created a skeptical population of users from more traditional “enterprise” languages who question the readiness and ability of PHP to scale, as well as a large population of PHP developers without formal computer science backgroun…

More >>

Advanced PHP Programming

5 thoughts on “Advanced PHP Programming”

  1. I started programming only a little over a year ago, with a JavaScript book I bought. Shortly after that I started with PHP.

    My first PHP book was Glasshaus’ “Dreamweaver MX: PHP Web Development” (had to start somewhere). I then bought Sams’ “PHP & MySQL web development”. That was a big step forward.

    Meanwhile, I learned all about separating the different layers on the front end through the use of XHTML, CSS and W3C DOM-based JavaScript, and I wanted to learn to achieve the same kind of maintainability in server-side scripting. I wanted more advanced programming techniques and I wanted to learn about `best practices’ and OOP.

    I then got the SitePoint PHP Anthology volumes. I liked its use of OOP for the various solutions, but they’re just that. A lot of cook book style solutions. I learned some good things from looking at all the solutions, but I wanted a more direct approach teaching me how to program PHP on a professional level, rather than just learn how to implement professional solutions.

    A few weeks ago I got the book Advanced PHP Programming. Finally I have a book that seems to really have what I was looking for. This teaches not only how OOP works in PHP, but it also shows in general how OO techniques apply to different situations (design patterns). A lot of other topics in the book are a little over my head right now, but it is good to know it’s there for when I need it.

    While reading the many examples in the previously mentioned PHP books, I kept asking myself “is this really the best way to handle this?”. Not with this one. I somehow know that this book can teach me all I ever wanted to know about programming PHP on a professional level and not teach me any ‘bad practices’ along the way.

    This is definately not the first book I should have bought on PHP, but it seems this may well be the last book I will be needing for a long time.
    Rating: 5 / 5

  2. PHP *needs* capable writers, like this one. Developers, who take time to write, seem rare – compared to writers, who rarely get to do development projects, anymore. This author is clearly a very experienced practitioner. He outlined a great table of contents.

    He advocates and provides guidance for adhering to best practices, regarding design patterns, scalability, caching, unit testing, profiling & tuning etc. The last 1/6 of the book is about C language PHP extension. Excellent “Further reading” suggestions are provided at the end of each chapter.

    Out of a high-volume PHP site developer, since 1999, I would expect creative examples. If your site provides Fibonacci sequences and readability scores web services, you’ll find this book highly useful. Though on page 1, the author PROMISES NO* “foo-bar” examples, he provides plenty (on pages: 19, 53, 56, 68, 102, 158, 166, 227, 230, 255, 268, 274, 325, 373, 405, 466, 483, 484, 563). Since a reader devotes plenty of time to contemplating foo-bar examples, I came to realize why they bother me so much … they’re unimaginative (i.e. mentally lazy), regarding pragmatic applications for the technology.

    I found myself constantly marking comma’s in the text – to ease the readability and follow what was being said. If the author doesn’t know where to put comma’s, the editors should! There’s no bold text – to illustrate lessons within the code. As far as I can remember, there’s no offer of complete code (e.g. from a website), either.

    This is a good, author with generally readable writing style and a wealth of experience to convey. I wouldn’t dissuade anyone from buying this book; there’s a tremendous amount to be learned and gained from this … probably the most advanced PHP text, available. I’m just a bit disappointed, because, though it’s very good, it could have been world class. I would buy future books from this author; I hope that they get even better!
    Rating: 3 / 5

  3. I’ve been programming in PHP full-time for 5 years now. I remember when I was first learning, how all the books felt a little over my head, in a good way. Very slowly I understood things that didn’t make sense before. And then very slowly I’d start to incorporate those things into my day-to-day programming.

    After 2 years or so, I missed that feeling. I’d check out new PHP books and flip through every chapter saying, “Yeah yeah yeah…”. I realized I had become an expert.

    I was honestly impressed looking at the table of contents of this book. This is NOT your usual PHP book! That’s obvious right away. So I ordered it. And it just arrived yesterday.

    I was up all night reading it, and again today. This is the most amazing PHP book for experienced PHP programmers I’ve ever seen. (Wait – this is the ONLY book for experienced PHP programmers I’ve ever seen!)

    The author really knows his stuff, and uses best-practices, throughout. Really well thought-out code with a lot to learn from.

    The fact that it’s all based on the new PHP5 style makes it even better! A great way to get to know the new object approach to PHP5: to see it in real-world examples, so that after a few hours with this book it’s second-nature.

    For the first time in three years, I feel wonderfully over-my-head with a LOT to learn here in this one amazing book. Thanks George!
    Rating: 5 / 5

  4. I have had the pleasure to read through this book, and I need to say that it is a must for those who take PHP seriously. This is not a usual tutorial type book, which will show an example for every keyword with long-winded explanations, but rather a compilation of best pratices and recommendations which you can build on.

    The performance section for example (which is one of my favourites) just scratches the surface on how you can use APD to find bottlenecks in your code. George provides you with some common examples, but the real work is still yours, you won’t get a step-by-step guide.

    Another interesting point of this book is that it is not to read from start to the end. You will surely find sections you are already familiar with (Smarty being a prime example), or sections too advanced for you (ex. distributed environments). And George also takes the liberty to use PHP 5 OO code before introducing the new PHP 5 features, and using XML-RPC before the chapter on RPC calls.

    I find it very valuable to have a lengthy introduction to good coding practices at the begining, since most of the code in the book builds heavily on having a consistent coding style. What I miss from the begining though is the introduction on where can people find details if they are stuck. There are interesting PHP.net services (lxr.php.net for example), which are quite valuable if you are trying to find something in the PHP source, to get an idea of how things work.

    George having been heavily involved in the APC and APD development knows a lot about PHP and Zend internals. The last section provides you with a current and correct explanation on how you can extend PHP. None of the printed books on the market, or any online tutorial or manual can beat this section currently.
    Rating: 5 / 5

  5. This book introduces and elaborates on very good programming practices that not many self-made programmers are aware of. I’ve had contact with some 5 or 6 other programming languages at university and I’ve had my share of contact with good programming practices, but they were never presented to me so clear-cut and in a so motivating way as in this book. That, alongside with the fact that I just love PHP, makes this the absolutely most important book I would recommend to any fellow programmer.

    This book doesn’t teach PHP, it teaches efficiency, maintainability and some really good programming notions. The fact that it uses PHP as a vehicle is just the icing on the cake. The source code used is manytimes from real open source projects, a nice effort from the author.
    Oh, and I would also like to mention the author’s style of writing: he comes across as a very open-minded individual who routinely recognises his own errors and isn’t in any way superior to the rest of us not-so-enlightned programmers.
    On a final note, let me just say I wish my copy of this book would magically turn into a spell-checked hardcover edition 🙂
    Rating: 5 / 5

Leave a Reply to Derek Sivers Cancel reply