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! |
This demonstration gives you an overview of IBM® Rational® Build Forge Express Edition, a global offering that provides a framework to automate and execute software processes. Rational Build Forge provides a software assembly line that can support all of your tools, technologies, and platforms so you can achieve a repeatable, reliable, and traceable build and release process. FREE! Go There Now!
|
|
|
|
David Barnes, Lead Evangelist for IBM Emerging Internet Technologies 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!
|
|
|
|
Build secure Web services with transport-level security using IBM Rational Application Developer V7 and IBM WebSphere Application Server V6.1. Follow this three-part series for step-by-step instructions about how to develop Web services and clients, configure HTTP basic authentication, and configure HTTP over SSL (HTTPS). This first part of the series walks you through building a Web service for a simple calculator application. You generate and test two different types of Web services clients: a Java Platform, Enterprise Edition (Java EE) client and a stand-alone Java client. You also handle user-defined exceptions in Web services. 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!
|
|
|
|
Visit IBM developerWorks to download the latest trial version of IBM Data Studio V1.1 at no cost. IBM Data Studio is a comprehensive data management solution that helps you effectively design, develop, deploy and manage your data, databases, and database applications throughout the data management life cycle utilizing a consistent and integrated user interface. Unlike other client-side data management solutions that focus on only one aspect of the application lifecycle or database administration, Data Studio complements the Rational Software Delivery platform, providing unparalleled flexibility for a heterogeneous data server environment across platforms. FREE! Go There Now!
|
|
|
|
Discover how IBM Rational AppScan Standard Edition can help you detext vulnerabilities in your web applications in the Web Application Security eKit. IBM Rational AppScan is a leading suite of automated web application security solutions that scan and test for common Web application vulnerabilities. The new Web Application Security eKit provides you with valuable resources, including white papers, demos, and additional information on the benefits of testing your Web applications. FREE! Go There Now!
|
|
|
|
Learn how to implement a build management system that uses and extends your existing automation technologies. This tutorial shows, step-by-step, how to install and configure IBM Rational Build Forge to manage builds for Jakarta Tomcat from source code. FREE! Go There Now!
|
|
|
|
This paper is about the critical role that a discipline called integrated requirements management can play in helping to ensure that your business goals and IT investments are continuously aligned—whether you are sourcing, integrating, building or maintaining software. It also looks at ways that automated IBM Rational® products can work together to help you use requirements in the very best way. FREE! Go There Now!
|
|
|
|
In this webcast, IBM Rational will discuss the importance of Web application security and will share techniques and best practices to introduce application security testing into current QA processes including: understanding common security vulnerabilities and techniques to integrate security testing with defect tracking and remediation systems in an effort to safeguard sensitive online information. FREE! Go There Now!
|
|
|
|
Explore how Rational and WebSphere software enable enterprise documentation in SOA environments. Specifically, a new integration between IBM WebSphere® Business Modeler and IBM Rational® Method Composer software can help technical writers more easily keep enterprise operations manuals in sync with changes that are made to business processes, resulting in more accurate and timely documentation that benefits the entire enterprise. FREE! Go There Now!
|
|
|
|
All FREE IBM® developerWorks Tools! |