Two Books on PHP
Author: Julie C. Meloni
Publisher: Prima Tech
Price: $39.99 US
Author: Tobias Ratschiller and Till Gerken
Publisher: New Riders
Price: $39.99 US
Reviewer: Phil Hughes
I chose to review these two books together because they complement each other. That doesn't mean they are the same quality—just that they cover different things in the same area.
Before you ask, “Why PHP?”, let me answer. While there has been a lot of web development in Perl, and Python is growing in this area, PHP is a tool designed specifically for dynamic web development. That, along with its C-like syntax, makes it an easy choice for a programmer wanting to add dynamic web content generation to their tool kit.
As a general comment about both books, they claim to cover PHP4. This is pretty much true because PHP4 is not very different from PHP3. This is actually good news because most existing PHP applications are still in PHP3, and a book that didn't cover PHP3 would be relatively useless.
This is the introductory book of the pair. It introduces PHP and works through many examples all the way to setting up an e-commerce site. Three of the eight chapters deal with databases in general and MySQL specifically. As the power of PHP comes from how it interacts with a database, this makes complete sense.
Once you get comfortable with what PHP is, the most important part of the book is the Essential PHP Language Reference in Appendix A. This appendix starts off with an introduction PHP syntax, and then covers all the built-in functions available to the PHP programmer. This section is well written and can act as a decent reference even for a newcomer to PHP.
When I finished reading this book, I felt I had the knowledge to go off and write some serious PHP code. Fortunately, instead of writing code, I read the other book.
This book is the real winner of the pair. By that, I mean it goes well beyond my expectations for any book on any programming language. New Riders seems to be on a roll with their recent language books, as the last one I reviewed, Python Essential Reference, was also a winner.
This is not a beginning PHP book and certainly not a beginning programming book. In the introduction, they state that the target audience is PHP programmers who want to take their skills to the next level, know other programming languages or want to extend PHP's feature set. I think they are correct with this statement.
This book is organized into nine chapters, each designed to extend your knowledge in a particular direction. The first chapter deals with development concepts. With over 30 years of programming experience in a dozen or more languages under my belt, I immediately wanted to skip this chapter. Fortunately, they anticipated this and included a sidebar titled “Why You Should Read This Section”. Okay, they were right. Too often, we want to get to the fun part—writing code. This first chapter sets the whole tone for the book, showing us the significant benefits of doing the design work first.
The next chapter, titled “Advanced Syntax”, introduces concepts such as classes, which can be ignored in basic programming but make your life a lot easier when you get into serious development. Chapters three through five deal with application design presenting concepts you need to think about, with code to fill in the blanks. Not quick reading but clearly a good investment.
Chapter six gets into database access. Like PHP Essentials, this book also concentrates on MySQL, but the presentation is very different. PHPLib is introduced, and readers are shown how to develop an application that is database-independent. PHPLib adds a level of abstraction for other interfaces as well as the database, and this chapter convinced me that using this library can amount to huge savings in development time.
Chapter seven goes on to use PHPLib to develop a knowledge repository. Note that all this code is on the included CD along with PHP, MySQL, Apache, TurboLinux, PostgreSQL and even the entire book as a PDF document. This chapter also includes an overview of XML and how it can be used to benefit the developer.
Chapter eight presents some PHP success stories, useful information that could also be used to convince your boss that PHP is real and does solve real problems. The final chapter shows how PHP can be extended.
|Using Salt Stack and Vagrant for Drupal Development||May 20, 2013|
|Making Linux and Android Get Along (It's Not as Hard as It Sounds)||May 16, 2013|
|Drupal Is a Framework: Why Everyone Needs to Understand This||May 15, 2013|
|Home, My Backup Data Center||May 13, 2013|
|Non-Linux FOSS: Seashore||May 10, 2013|
|Trying to Tame the Tablet||May 08, 2013|
- RSS Feeds
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- New Products
- Validate an E-Mail Address with PHP, the Right Way
- Drupal Is a Framework: Why Everyone Needs to Understand This
- A Topic for Discussion - Open Source Feature-Richness?
- Download the Free Red Hat White Paper "Using an Open Source Framework to Catch the Bad Guy"
- Tech Tip: Really Simple HTTP Server with Python
- Readers' Choice Awards
- Android is Linux -- why no better inter-operation
2 hours 7 min ago
- Connecting Android device to desktop Linux via USB
2 hours 36 min ago
- Find new cell phone and tablet pc
3 hours 34 min ago
5 hours 3 min ago
- Automatically updating Guest Additions
6 hours 11 min ago
- I like your topic on android
6 hours 58 min ago
- Reply to comment | Linux Journal
7 hours 19 min ago
- This is the easiest tutorial
13 hours 33 min ago
- Ahh, the Koolaid.
19 hours 12 min ago
- git-annex assistant
1 day 1 hour ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi
It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?