Beginning PHP 5 and MySQL: From Novice to Professional
By: W. J. Gilmore
Published by Apress
PHP 5 is large step forward from earlier versions. When I first started playing around with it, I saw the release as a case of the Emperor's New Clothes. Then I recoded a script that I did in PHP4. It used XML. What was a long painful exercise in PHP4, was almost effortless in PHP 5. After having done a similar exercise in C# for ASP.NET, the light went on. PHP 5 isn't good-- it's great! PHP 5 is the ideal language for web development today. The conundrum: as an Open Source language, it doesn't have same level of support and documentation as the Microsoft supported languages. What you need is a good book to walk you through the coding concepts, to stand there as a language reference and to give you supplemental information on related topics: databases, security, installatation, To fill this role is "Beginning PHP 5 and MySQL From Novice to Professional" from Apress.
By : Mike DeWolfe
If you've ever picked up a PHP book before, you'll find that the layout is pretty standard. Chapter 1 is the introduction. Ramus Lerdorf invented PHP as a forms interpreter. Yadda, yadda, yadda. It's good that it's there for the novices but I've read this so many times that I could write a short Lerdorf biography from memory. It outlines what makes PHP good. Then what makes PHP 5 great.
Chapter 2 has installation instructions. At the time of doing this review, I was working on a cantankerous website that had a gimped install of PHP 4-- the server has so messed up, PHP couldn't talk to MySQL under any library. I used this book as a reference to get into PHP 5. I followed the installation guidelienes from the book and found they did me little good. That's not a critical failing of this book. It just speaks to the linear nature of this part of the book. While there are installation options for the build and deployment of PHP, they aren't listed. They would have been handy.
Once you clear the introductory chapters, you move into information on PHP 5: the concepts and the specific functions. The strengthening of the role of classes in PHP 5 is very important and this book keeps that in focus. While the try-catch-throw concepts are covered, they are not emphasized. They are there, but the index neglects to reference them.
In fact, the index is generally weak. There are missing references to lots of material in the book. A trick I pull when I'm evaluating a book at a bookstore is to grab the book, go to the index and look for subjects that stump me or thrill me. If the index is lacking, the book goes back to the shelf. With this book, I had the chance to read it start to finish and found a lot of good stuff inside.
When I went through O'Reilly's "Learning PHP 5", new concepts like Try-Catch and method overloads were underlined and I didn't feel that "Beginning PHP 5 and MySQL" went as far down the road on those concepts.
A chapter on securing PHP has a lot of information that you could find on hardened PHP sites; but presented in a friendlier, more approachable way. With scripts and applications coming out using Smarty, the "Templating with Smarty" chapter is a handy to have reference. The Web services is also good, but it divurges into C# code. The author, W. Jason Gilmore, also does work with C# so he speaks with authority. Nevetheless, throwing it into a PHP5 book felt out of place.
After PHP, the books digs into MySQL. This is where I found the book to be its strongest. It examines the popular MySQL clients. It details how to secure MySQL. It goes into intimate detail about MySQL table types. It talks about transactions and shows quick examples of boilerplare MySQL query/PHP combos (like creating multi-page results.)
The source code from the book is available (here) but I was hard pressed to find a reference to that resource in this book. Given how much material there is, not underlining the availability of the code is a misstep.
Overall, this is a worthwhile outting. It reminds me of the "Web Applications with PHP and MySQL" by O'Reilly, but updated; expanding and broadening in its approach to keep advanced users with the book.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |
More PHP Book Reviews Articles
More By Codewalkers
developerWorks - FREE Tools! |
You'll get answers to many questions and more from David Barnes, Lead Evangelist for IBM Emerging Internet Technologies. David will discuss aspects of Web 2.0 that bring value to corporations, academia, and government. He'll also discuss IBM's vision around Web 2.0, including the importance of remixability and consumability. The discussion will culminate with examples of various IBM Software Group solutions you can use to get ahead of the Web 2.0 adoption curve. FREE! Go There Now!
|
|
|
|
Join this Rational Talks to You teleconference, featuring Paul Boustany and Mark Krasovich, to speak to the experts about becoming a Rational ClearCase power user. Get a chance to ask your questions and learn tips and tricks for using Rational ClearCase in Agile development FREE! Go There Now!
|
|
|
|
Learn to enable users to both rate existing animations and to combine existing animations into new snippets. This is the third in a series of three tutorials that chronicle the building of a site that enables collaborative discussion and animation building using Domino and OpenLaszlo. FREE! Go There Now!
|
|
|
|
Download a free trial version of IBM DB2 9.5 for Linux, UNIX, and Windows. DB2 9 is the result of a five-year development project that transformed traditional (static) database technology into an interactive data server that merges the high performance and ease of use of DB2 with the self-describing benefits of XML. FREE! Go There Now!
|
|
|
|
Download the IBM WebSphere Portal V6.1 beta code and learn more about the rich features and enhancements in IBM WebSphere Portal V6.1. WebSphere Portal provides a composite application or business mashup framework and the advanced tooling needed to build flexible, SOA-based solutions, and scalability to meet the needs of any size organization. FREE! Go There Now!
|
|
|
|
This tutorial shows new users of IBM WebSphere Business Monitor Version 6.0.2 how to perform the "Hello World" equivalent for monitoring business process applications. It is intended to help you get familiar with the capabilities of the product. FREE! Go There Now!
|
|
|
|
Get a free trial download of the latest version of IBM Rational Performance Tester V7.0.1, a load and performance testing solution for teams concerned about the scalability of their Web-based applications. Combining multiple ease-of-use features with granular detail, Rational Performance Tester simplifies the test-creation, load-generation and data-collection processes that help teams ensure the ability of their applications to accommodate required user loads. FREE! Go There Now!
|
|
|
|
Join the IBM Watchfire team for an informative discussion on techniques and best practices to proactively manage Web application security and how to effectively build application security testing into the software development lifecycle (SDLC). In this Software Delivery Platform webcast you will learn: How to better understand potential web application security vulnerabilities, best practices and how to effectively integrate application security testing into the software development lifecycle, the importance of detecting and removing software vulnerabilities during application development. FREE! Go There Now!
|
|
|
|
In this webcast, you'll get an introduction to the eXtreme Transaction Processing (XTP) features of WebSphere Extended Deployment and the common architectural traits required by XTP applications. See how WebSphere Extended Deployment's ObjectGrid feature provides a state-of-the-art infrastructure for hosting XTP applications. FREE! Go There Now!
|
|
|
|
User communities play an important role in communication and collaboration around products, solutions and other areas of special interest to members. Successful communities are able to provide the right mix of content and services to deliver a value proposition that resonates with each audience. Join Tom Inman, VP of Marketing for Information and Platform Solutions as he introduces the new LeverageINFORMATION community. During this webcast, learn about the value provided by the community and how customers and partners derive value from the community in addressing their own technical and business challenges. FREE! Go There Now!
|
|
|
|
All FREE IBM® developerWorks Tools! |