So far, since getting in PHP I've purchased two books and I've also tried out a very large PHP program that was published in an Internet magazine.
Both books came with a CD ROM, and I've noticed that some of the larger program examples on both books are littered with errors. Sure enough, the shopping cart program that I got from this magazine also has errors all over the place.
Anyway, the thing is... all of these errors are really silly errors that don't affect the fundamental structure or design of the programs. For example, one of my books has a program for building an online catalogue. It talks you through this example and it also has the thing on a CD ROM. But if you take a closer look on the CD ROM, there are daft mistakes everywhere. For example, the file names for some functions have been changed ever so slightly. Or, the book gives one .inc file a slightly different name from the file of the CD.
These are all very trivial problems and anyone working their way through these books would pick up on them straight away. I wonder... Do you think the authors put these errors in on purpose?????
I mean, think about how expensive some good shopping cart software can be compaired to how relatively inexpensive some of these PHP books are.
Do you think it's possible that all these errors have been put in there to stop people from cheating and just copying the programs straight from the CD ROM? One thing's for sure, if you copy these programs from the CD ROMs and try to run them, they will not work at all because of the errors.
-David
PS- I've checked out lots of other book reviews in Amazon.com and apparently lots of other PHP books are plagued with typing errors too.