PHP for Absolute Beginners

PHP for Absolute Beginners
Authors
Jason Lengstorf
ISBN
1430224738
Published
15 Oct 2009
Purchase online
amazon.com

Get started in web development using PHP. Even if you've never programmed before, author Jason Lengstorf introduces you to PHP by building a PHP-based blogging site while covering all the good coding practices and skills that you'll need when you start your own projects. *Create web content with version 5.3 of PHP *Learn good coding practices from the very beginning *Learn how systems like WordPress work

Page 2 of 2
  1. Editorial Reviews
  2. Customer Reviews

Customer Reviews

F. Janos said
This book needs to be revised and test the codes that are provided. I had a hard time figuring out where were the errors. Well that's the way one can learn right? But it is not for absolute beginners because they would get confused by this book very easily. It doesn't really explains some things and doesn't say why he does what he does. The author uses some methods and scripts that needs explanation.

Keeva Cox said
I am an absolute beginner in PHP. I have never coded anything from scratch in PHP. In fact, I don't have much coding experience at all aside from HTML. The most experience I have in PHP is in wading through thousands of lines of code to copy/paste some mods to an open-source forum program I have on one of my websites.

Being an absolute beginner in PHP, I give the book 3 stars. Here's why:

The author glosses over theory (in some instances, he just does away with it all together) in order to hurry up and get to the part of the book where you code your own blog. That's fine if all you want to be able to do with PHP is code your own simple blog. However, if you're like me and would actually like to be able to code something other than a blog after you read this book, you NEED theory. There are several different ways you can code things to get the same output. You need to know the hows and whys of them all in order to choose the best coding method for your project. Otherwise, you run the risk of creating a buggy program and spending hundreds of hours and countless frustrations on a project that you'll ultimately have to scrap because it wasn't coded properly in the first place.

There is no Glossary. Dozens of new terms and concepts get thrown at you within the first two chapters of the book, most of which are poorly explained (if they are even explained at all). A glossary at the back of the book would have allowed the author to explain them in detail to true beginners in PHP without taking up space within the chapters themselves. Without it, the first couple of chapters can be a bit overwhelming.

There are errors in the test code. To me, this is perhaps the biggest flaw this book has. Even during the first few chapters, you are encouraged to write the test code out for yourself, save it, view what you've just created, and compare it to the example in the book. I spent nearly an hour in frustration over a section of code that was giving me nothing but errors, the entire time wondering what I was doing wrong. Fed up and discouraged, I finally decided to move on. Several pages later, after having read about a new concept, I discovered that the reason why I got nothing but errors before was because one line in the test code was wrong. In a book that is primarily teaching PHP through example codes, having even one line of coding wrong is unfathomable.

The good thing about this book is it DOES get you coding right away. It's encouraging to see code that you've written (even from examples) work. It's even more gratifying playing around with the example code on your own, changing different variables, to see how it changes the final output. Because you're coding a simple blog, you learn about databases and how PHP interacts with MySQL, something that is very valuable in the age of dynamic websites.

All in all, this book is worth the read if you'd rather code a sample project before starting off on your own coding journey. If you are a true beginner in PHP, be prepared to struggle a bit if you don't purchase a separate book on PHP theory or research it online before starting this one.

Paul Barrick said
I have read lots of php books. Especially starter books. Jason does a great job of going over material in a way that lets you jump right into building an app without wasting 400 pages explaining theory and definitions. His hands on approach is a awesome way to make learning the material easier. He goes over stuff as you need it when you need it. This book is one of the best php books you will find.

Original Elvis said
It's clear from reading this book that edits were made after the initial submission. Some of the code doesn't work or doesn't match the author's "official" code sample for the chapter. I've read enough programming books to expect these kinds of problems but it's inexcusable for a book that targets ABSOLUTE BEGINNERS. Many of the errors I've found could have been caught in editing if the proof reader entered the program as described in the book.

For example, in Chapter 5 the author provides a Cascading Style Sheet with the caveat that this isn't a book on HTML/CSS and the user should type the text as displayed. Detailed instructions are provided for including the style sheet in the project. Unfortunately the href for the style sheet - "/css/default.css" - is wrong and it should be "/simple_blog/css/default.css". As a result, the style sheet isn't used and the actual browser output doesn't match what's displayed in the book.

In Chapter 3, page 90 the author feeds the result of the trim() function to the empty() function as part of a conditional check - if(!empty(trim($_POST['username']))). This code returns a fatal error because empty() will only check variables. Again, typing the code as displayed in the book would have caught the error.

In Chapter 7 on page 200 there's a custom confirmDelete() function that doesn't work and isn't part of the author's official code sample. Did anybody test the code before putting it in the book?

I'm giving PHP for Absolute Beginners 3 stars because the editing was sloppy. If the errors are corrected I would give it an additional star. The author provides a complete sample application and reviews all the pieces of the program. That's more than you'd get from a Software Development Kit sample. He discusses using XAMPP for PHP development which is a great suggestion for starting users. There are some wrinkles when installing & configuring XAMPP which would have been nice if the book had taken the time to go over it. I had to spend an afternoon reading the ApacheFriends forums to solve my problems.

Frank Stepanski said
PHP has been the most popular server-side web developer language for years now. There are more websites created with PHP than any other programming language (more than ASP.NET, Java, etc.). That is probably why there are tons of PHP books from beginner to advanced on the market today.

I have a few PHP books and looked over lots of others online but so many have fell short in my opinion. Either they are way too basic and cover little tidbits and little examples. Thats all well and good for just learning the basics of the language but then what?

After you learn the basics of the PHP syntax (variables, conditional statements, loops, functions, object and connecting to MySQL) then what?

Well, normally most will try and look for an intermediate-advanced book, but do know what happens then? You find the book teaches more advanced topics which may or not be of help to you because you really havent fully understood how to use the basics yet.

I have taught lots of beginner to intermediate classes on PHP, ASP.NET, JavaScript and such and I find students dont fully know how to take what they have learned and put into practice. How do we solve this problem?

This book does. This is the only book i've read in PHP (if not any other programming web langauge), that after it explains the syntax basics with some small little examples, it then shows the reader how to take what they have learned into developing a real world example.

This book shows its readers how to build a working blog site. Of course its not a WordPress clone, but its a useable website that can be expanded. It is actually useful web application. Brilliant!

I have started to implement this book on my PHP classes I will teach next semester. I wish this book was written years ago.

A must buy for anybody who wants to either learn the basics of PHP, or a current PHP devloper who wants to learn how to use PHP the right way and learn to develop a real PHP web application.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Walking on water and developing software from a specification are easy if both are frozen.” - Edward V Berard