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! |
As businesses grow increasingly dependent upon Web applications to provide services to customers, employees and partners, these complex applications become more difficult to secure. Although traditional security solutions protect Internet infrastructure layers, they do not guard against HTTP and HTML attacks. Many organizations that conduct security testing still deploy applications that allow attackers to manipulate their logic and wreak havoc on their business. To mitigate this risk, development and delivery teams must address Web application security throughout the lifecycle, addressing the many layers detailed in this paper. FREE! Go There Now!
|
|
|
|
Effective governance for lean development isn’t about command and control. Instead, the focus is on enabling the right behaviors and practices through collaborative and supportive techniques. Hear from Scott Ambler on how it is far more effective to motivate people to do the right thing than it is to force them to do so. Learn how to form a lightweight, collaboration-based framework that reflects the realities of modern IT organizations. FREE! Go There Now!
|
|
|
|
Poor Requirements Management capabilities in an Enterprise have been linked to excessive project failures, escalating IT costs, and failure to deliver competitive advantage into the marketplace. Join Brianna M Smith from IBM Rational and learn about how successful organizations align IT and Business stakeholders through collaborative processes and tools for effective requirements management, and how an integrated approach across the IT lifecycle can provide unparalleled visibility and traceability to ensure that project teams are delivering on the business vision by "doing the right things" and "doing things right." 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!
|
|
|
|
WebSphere Process Server delivers a unique integration framework that simplifies existing IT resources. Often, as IT assets grow to support business demand, so too does their complexity and manageability. In this webcast, we’ll discuss how WebSphere Process Server helps deliver an SOA infrastructure that provides a common model to orchestrate, mediate, connect, map, and execute the underlying IT functions. Discover how WebSphere Process Server simplifies integration of business processes by leveraging existing IT assets as reusable services without the complexities of traditional integration methodologies. FREE! Go There Now!
|
|
|
|
Asset Reuse is a key strategy for companies looking to create innovative solutions to solve complex software development problems. Searching for, identifying, updating, using and deploying software assets can be a difficult challenge. Listen to this webcast, to learn about strategies and tools that you can leverage for a successful project, including Rational Asset Manager, Rational Software Architect and WebSphere Service Registry and Repository. FREE! Go There Now!
|
|
|
|
This Fall, IBM Rational talks to you directly through a special teleconference series giving you access to the best minds in IBM Rational - product experts and market thought leaders who will answer your questions during these pre-scheduled telephone conference calls. Register today! FREE! Go There Now!
|
|
|
|
This whitepaper provides areas to consider when evaluating any software configuration management solution. It addresses how the IBM solutions (Rational ClearCase and Rational ClearQuest) meet the needs and requirements of both project leaders and developers to provide successful Software Change and Configuration Management. FREE! Go There Now!
|
|
|
|
You can now evaluate IBM Rational Asset Manager V7.0 online without installing or configuring it on your own system! Rational Asset Manager helps create, modify, govern, find, and reuse any type of development assets, including SOA and systems development assets. Rational Asset Manager helps you reduce software development costs and improve quality by facilitating the reuse of all types of software development-related assets. Visit developerWorks to learn more about this product and register to explore its capabilities online. FREE! Go There Now!
|
|
|
|
Join this Rational Talks to You teleconference, to hear how Enterprise Generation Language (EGL) eliminates the need for tedious and error-prone low level coding, so developers can focus on business requirements. EGL extends the Rational software development platform with a simplified programming language that enables developers who have little or no experience with Java, Web technologies or Service Oriented Architecture, to create enterprise-class applications and services quickly and easily. It also allows developers who may have little or no mainframe programming experience to quickly create traditional mainframe components. FREE! Go There Now!
|
|
|
|
All FREE IBM® developerWorks Tools! |