OK for my needs
-- but I don't have the needs that a serious PHP programmer does. All the basics seem to be here, in the form of examples. An experienced programmer can skip over the bumpy parts and fill in the blanks.
And there are lots of blanks. Boolean operators are introduced on page 60, including both bitwise and short-circuit OR operators. It gives an example of short-circuit behavior, but never really explains what that means. (If you never heard the term, "a OR b" in the short-circuit sense means "if a is true the expression as a whole is already true, so don't even evaluate expression b", and don't create all the output and side effects that b would have created.) Likewise, p.216 shows a use of include() that doesn't mean what you probably want, but fails to explain why incorrect usage is incorrect. Escape tag configuration is set on p.20, but there never is a clear description of how escape tags interact with the code. The section on Javascript gives examples of files with that and PHP together, but never really spells out the source-level interactions between them.
Also, there is only a little mention of some of the peculiar capabilities of an interpreted language, like being able to use character strings as variable names. This borders on (and sometimes blurs the line with) self-modifying code. There's a lot of potential power there, but you're on your own if you try to tame it.
On the whole, the book gave a uniform impression. It sounds like a pretty good explanation of material that the author just barely understands. There's plenty of code-by-example material here, so I can probably get everything done that I need to. Someone who really needed to understand the language in finest detail would not get what they want, however.
//wiredweird
Lots of errors
There are lots of errors in the code listings in this book, as well as a lot of typos in the text. This is not just annoying, but quite confusing. The concepts are explained well enough, but the errors really get in the way.
3 thumbs up
Not for newbies to programming but if you know the basics
of html and javascript and basic database stuff but want the
heads up on PHP then this book is great !!!... Just the facts described short, sweet and to the point. Examples are perfect
without being overly complex. Good stuff.
Somewhat misleading title, but the book is still great
A more appropriate title would have been 'An Introduction to PHP 4.0 for HTML Programmers'. The first five chapters cover basic programming concepts such as data types, conditional statements, functional programming, in arrays in very great detail. I found myself (a VB, C, and C++ programmer) skipping dozens of pages at a time. However, in addition to the basic theories, the book does do a good job explaining the various commands and functions PHP uses, although in a manner slightly more basic than I had expected.Starting in chapter 6, however, Gilmore throws down new concepts fast and furiously. The quality of his explanations doesn't suffer, he simply covers more in a briefer period of time in a manner that a somewhat experienced programmer will easily understand.
On the whole, I was very impressed with this book. It does a fantastic job introducing PHP 4.0 and serves as a fantastic reference book as well.
2 Thumbs UP!
The book gave me so much fundamental insights I needed to get started with PHP. The examples are easy to understand; explanations are to the point; and the entire book is so very practical. If anyone needs to purchase their first or second PHP4 book, this is the one.