Upgrading to PHP 5
All that's new in PHP 5
Publisher: O'Reilly Media
Final Release Date: July 2004
Pages: 352

If you're using PHP 4, then chances are good that an upgrade to PHP 5 is in your future. The more you've heard about the exciting new features in PHP 5, the sooner that upgrade is probably going to be. Although an in-depth, soup-to-nuts reference guide to the language is good to have on hand, it's not the book an experienced PHP programmer needs to get started with the latest release. What you need is a lean and focused guide that answers your most pressing questions: what's new with the technology, what's different, and how do I make the best use of it? In other words, you need a copy of Upgrading to PHP 5.

This book is targeted toward PHP developers who are already familiar with PHP 4. Rather than serve as a definitive guide to the entire language, the book zeroes in on PHP 5's new features, and covers these features definitively. You'll find a concise appraisal of the differences between PHP 4 and PHP 5, a detailed look at what's new in this latest version, and you'll see how PHP 5 improves on PHP 4 code. See PHP 4 and PHP 5 code side-by-side, to learn how the new features make it easier to solve common PHP problems. Each new feature is shown in code, helping you understand why it's there, when to use it, and how it's better than PHP 4. Short, sample programs are included throughout the book.

Topics covered in Upgrading to PHP 5 include:

  • The new set of robust object-oriented programming features
  • An improved MySQL extension, supporting MySQL 4.1, prepared statements, and bound parameters
  • Completely rewritten support for XML: DOM, XSLT, SAX, and SimpleXML
  • Easy web services with SOAP
  • SQLite, an embedded database library bundled with PHP 5
  • Cleaner error handling with exceptions
  • Other new language features, such as iterators, streams, and more.
Upgrading to PHP 5 won't make you wade through information you've covered before. Written by Adam Trachtenberg, coauthor of the popular PHP Cookbook, this book will take you straight into the heart of all that's new in PHP 5. By the time you've finished, you'll know PHP 5 in practice as well as in theory.
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyUpgrading to PHP 5
 
3.5

(based on 4 reviews)

Ratings Distribution

  • 5 Stars

     

    (1)

  • 4 Stars

     

    (2)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (1)

Reviewed by 4 customers

Sort by

Displaying reviews 1-4

Back to top

 
5.0

Excellent!

By ACS

from Undisclosed

Comments about oreilly Upgrading to PHP 5:

I was impressed by the clarity and conciseness of this little book. It was a pleasure to read and I had no problems identifying the places that I did not have to read on the first reading, or that were related to PHP 4 and did not need to study fully.

The examples about PHP 4 (that are then recreated in PHP 5) are carefully chosen to explain how the new language makes things easier and/or more effective and modular with PHP 5. This didactic device is very useful for people that have worked extensively on PHP 4.

This is clearly not a book for people that are just begining on PHP or for those that have little experience on PHP 4. It is better for them to learn from a PHP 5 book (Learning PHP 5 maybe?) directly. However I'd recommend anyone on that situation to then come back and give this book a careful look since many topics are explained here better than in many other places in the literature.

I was especially fond of the chapters on XML, Iterators, and Streams and Wrappers. However all the other chapters were very helpful and I can see myself coming back many times in the future for clarifications on fine point on OO programming, MySQLi, or Error Handling.

One of the best O'Reilly books I own.

 
4.0

i liked a lot

By Francesco

from Undisclosed

Comments about oreilly Upgrading to PHP 5:

As I haven't had any regular computer programming studies, this book which doesn't take anything for granted was perfetct for me.

I liked more: the mysql chapter, XML and error handling. But also very very good is chapter 10 (PHP in action): a small programming example.

I liked also the smaller size: 15x23 cm versus 18x23.5, which is more comfortable for people who read it in train.

 
4.0

Concise and to the point

By hooda

from Undisclosed

Comments about oreilly Upgrading to PHP 5:

I purchased this book as I was using PHP 4 books to lean how to program PHP 5.

The chapters that caused me to make the purchase were on OOP. It was the best PHP 5 OOP overview I have seen. A bit concise, but covered all the ground I wanted in as few pages as possible.

This is not an exhaustive reference, nor a hand holding tutorial. However it does provide enough clear background on the new features that the PHP documentation starts to make sense.

Thanks for a great book.

hooda

 
1.0

Disapointing

By dunxd

from Undisclosed

Comments about oreilly Upgrading to PHP 5:

Disapointing. The book seems confused, often spending more time telling you about PHP4 workarounds than the PHP5 way of doing things (Should it have been called Downgrading to PHP4?).

Examples are not clearly labelled, meaning that if you dip into this book you may end up applying these PHP4 methods when the whole point is to avoid them. Chapters are very poorly organised, meaning you aren't going to want to sit down and read it.

I found the chapter on OOP particularly confusing. The discussion of constructors and destructors was scattered around the chapter, as was the discussion of public, private and protected methods and properties. Code examples weren't clearly PHP4 or PHP5, either through labelling, the context in the text, and worst of all many that seemed to be examples of PHP4 use mysqli functions that aren't available in PHP4.

Sorry, but this book feels like a dud to me. O'Reilly should be updating Programming PHP and the PHP Pocket Reference, rather than selling this book.

My copy is on the way back to Amazon.

Displaying reviews 1-4

Back to top

 
Buy 2 Get 1 Free Free Shipping Guarantee
Buying Options
Immediate Access - Go Digital what's this?
Print: $29.95