Head First PHP & MySQL

Head First PHP & MySQL
by Lynn Beighley, Michael Morrison

Head First PHP & MySQL
List Price: $44.99
Our Price: $24.39
You Save: $20.60 (46%)
Availability: Usually ships in 1-2 business days
Buy Used: from $11.98 (click here)
Category: Book
See more book details and other editions


(Click here)
Buy this book at online book store in your country
Canada | UK | Germany | France

Book Summary Information

Author: Lynn Beighley, Michael Morrison
Edition: Paperback
Audio: English (Unknown); English (Original Language); English (Published)
Published: 2008-12-29
ISBN: 0596006306
Number of pages: 816
Publisher: O'Reilly Media

Book Reviews of Head First PHP & MySQL

Book Review: Helped me to get my first job on oDesk
Summary: 5 Stars

This was a good book. After reading this book my second application on oDesk was accepted and I completed my first web development job earning 5 out of 5 stars in all areas for the work that I did.

It is probably better to do only a few chapters carefully (following their advice in bullet number 9 to "write a lot of code") than it is to rush through the book too fast. Chapters 1 through 6 could possibly be enough for many quick jobs or small sites. You'll need chapter 7 if you are interested in keeping track of users (it covers cookies, and also HTTP authentication). Chapter 8 has good rules and guidelines on how to organize your database to avoid inconsistencies and problems.

The other chapters are: chapter 9 covers custom and string functions, chapter 10 covers regular expressions, chapter 11 covers a graphics library, and chapter 12 covers web services and syndication.

These could possibly be skipped if the reader already has a reasonably good background in programming (e.g. has taken two or three courses at the undergraduate level in software development), or does not expect that that those are necessarily needed for the task at hand.

For example, a good programmer who has learned programming fundamentals may be able to pick up how to use the GD graphics library just from the documentation that comes with PHP.

You can always come back to those chapters at a later time (after all you've got to help Owen save his dog!)

I've only done one job, so I speak here mostly from that experience. I would grant that it is quite possible that those topics in chapters 9 through 12 may come in very handy, speed things up, and improve performance for other contract jobs, interviews, or full-time positions.

Just practicing and exploring things can help a lot as well.

Feel free to laugh at all the jokes, and be sure to do all the exercises. Some of the advice may sound a little bit silly or extraneous (for example, talk about the topic out loud, or drink a lot of water while you are studying), but I think they are reasonable tips and suggestions for helping to learn, and I think they helped me.

I also used [...] (entirely as an observer, just reading the kind of questions that people have can help), and of course the PHP.net site which has all the documentation.

It can take some time to figure out how to navigate the PHP.net site, but everything is there. You can click around and find what you need.

Before I took the oDesk exam I also got on Safari the book Programming PHP by Rasmus Lerdorf (the inventor of the language). That book goes into more depth. I read chapter 6 on classes to learn more details.

That review of chapter 6 in Programming PHP was helpful when I took the oDesk skills test which helped me to get my first job on oDesk.

Like all technical books there is some errata which has remained unfixed on Safari Books. If you see something that looks like a mistake and are using Safari Books you can click on Extras and then go to Errata. There is also a forum on [...] for people to ask questions on. You can see some of Michael Morrison's posts on there.

On oDesk many people said that it took them a few weeks to get their first job. On the second day of looking I found that an employer had written a specification, which I looked at and then began working on in PHP. I submitted my cover letter along with a URL to the work that I had done. I bid what the employer asked for which was about 20% of the average bid. While others had required a few weeks before getting their first job; with the training from Safari Books I got a job in about a day and a half. I built a customer relationship management web application frontend that worked with Zoho CRM.

One interesting comment about my job is related to chapter 8 and has to do with database normalization and having for each table a primary key. The job that I worked on had a 12 page specification and they had in the specification a schema but there was no primary key for the only table in the database. In the middle of the contract I asked graciously whether it was possible to add one column to the table so that there would be a primary key. After demonstrating that I could help with the task my employer (who is an engineer and scientist but not a web developer or database administrator) agreed readily. I think this was a good example of applying Dale Carnegie principles. If I had asked to make this change at the beginning before establishing more of a relationship, and demonstrating that I could help with the task, the employer might have still agreed, however, I think it would have been more awkward. I might have to try to explain why such a decision constitutes good design.

I enjoyed the book a great deal. It helped to lift up my spirits when I was depressed about being unsuccessful in graduate school.

Maybe it would have better to have delayed my review after gaining more experience trying to get a position in the conventional job market, or having done more freelance work on sites like elance, oDesk, or possibly TopCoder. However, I think as time goes by I'll see this book as being very useful.

I'm eager to read more Head First books, because I think the model is a very good one. For web development in particular I'm thinking about reading Head First JavaScript also by Michael Morrison. However, I may read some of the Head First Java book so that I can learn enough to start competing on TopCoder algorithm competitions.

I think Head First SQL (also by Lynn Beighley) may also be very useful for learning SQL in more detail toward the goal of gaining a MySQL certification.

David

P.S. You'll need of course a good editor or IDE to go through the book and for PHP/MySQL coding tasks. I was weaned on Emacs, but when doing the book, and the contract I used HTML-kit.

HTML-kit worked fine, and is a good program. On the other I'm thinking that Emacs might be better for different reasons:

1. Automatic indenting.
2. Matching parenthesis.
3. Incremental search (find might have some bug in HTML-kit)

Eclipse is probably now the most advanced IDE (possibly too sophisticated for the kinds of jobs I'd be working on in the near future).

How To Win Friends and Influence People
Programming PHP
Head First Java, 2nd Edition
Head First JavaScript
Head First SQL: Your Brain on SQL -- A Learner's Guide

Summary of Head First PHP & MySQL

If you're ready to create web pages more complex than those you can build with HTML and CSS, Head First PHP & MySQL is the ultimate learning guide to building dynamic, database-driven websites using PHP and MySQL. Packed with real-world examples, this book teaches you all the essentials of server-side programming, from the fundamentals of PHP and MySQL coding to advanced topics such as form validation, session IDs, cookies, database queries and joins, file I/O operations, content management, and more.

Head First PHP & MySQL offers the same visually rich format that's turned every title in the Head First series into a bestseller, with plenty of exercises, quizzes, puzzles, and other interactive features to help you retain what you've learned.

  • Use PHP to transform static HTML pages into dynamic web sites
  • Create and populate your own MySQL database tables, and work with data stored in files
  • Perform sophisticated MySQL queries with joins, and refine your results with LIMIT and ORDER BY
  • Use cookies and sessions to track visitors' login information and personalize the site for users
  • Protect your data from SQL injection attacks
  • Use regular expressions to validate information on forms
  • Dynamically display text based on session info and create images on the fly
  • Pull syndicated data from other sites using PHP and XML
Throughout the book, you'll build sophisticated examples -- including a mailing list, a job board, and an online dating site -- to help you learn how to harness the power of PHP and MySQL in a variety of contexts. If you're ready to build a truly dynamic website, Head First PHP & MySQL is the ideal way to get going.

Internet Books

Book Subjects
Most talked about in Internet Books
PHP and MySQL by Example ImagePHP and MySQL by Example
by Ellie Quigley, Marko Gargenta
Prentice Hall; Published: 2006-12-02; Paperback; Book
Best price: $25.99
Price in other shops: $54.99
Navigate the Net: A Comprehensive Learning Experience for Travel Professionals ImageNavigate the Net: A Comprehensive Learning Experience for Travel Professionals
by Shelly M. Houser
Prentice Hall; Published: 2002-05-24; Paperback; Book
Best price: $12.50
Price in other shops: $61.60
Elijah Lovejoy's ASP Training Course (Complete Video Course) ImageElijah Lovejoy's ASP Training Course (Complete Video Course)
by Elijah Lovejoy
Prentice Hall PTR; Published: 2001-12-18; Hardcover; Book
Best price: $66.49
Price in other shops: $69.99
Weaving a Website: Programming in HTML, Java Script, Perl and Java ImageWeaving a Website: Programming in HTML, Java Script, Perl and Java
by Susan Anderson-Freed
Prentice Hall; Published: 2001-08-16; Paperback; Book
Best price: $19.93
Price in other shops: $110.00
Online Resource Guide for Law Enforcement ImageOnline Resource Guide for Law Enforcement
by Timothy M. Dees
Prentice Hall; Published: 2001-06-30; Paperback; Book
Best price: $1.99
Price in other shops: $44.80
Core Servlets and Javaserver Pages: Core Technologies, Vol. 1 (2nd Edition) ImageCore Servlets and Javaserver Pages: Core Technologies, Vol. 1 (2nd Edition)
by Marty Hall, Larry Brown
Prentice Hall; Published: 2003-09-05; Paperback; Book
Best price: $27.75
Price in other shops: $64.99
Publish it on the Web! Windows, Second Edition ImagePublish it on the Web! Windows, Second Edition
by Bryan Pfaffenberger
Academic Press; Published: 1997-08-13; Paperback; Book
Best price: $9.00
Price in other shops: $37.95
Big Book of FYI RFCs (Big Books) ImageBig Book of FYI RFCs (Big Books)
Morgan Kaufmann; Published: 2000-08-15; Paperback; Book
Best price: $8.50
Price in other shops: $34.95
HITTESDORF CORBA/IIOP CLEARLY EXPLAINED (Clearly Explained) ImageHITTESDORF CORBA/ IIOP CLEARLY EXPLAINED (Clearly Explained)
by Michael Hittesdorf
AP Professional; Published: 2000-03-01; Paperback; Book
The Internet Outdoor Family Fun Yellow Pages: The Online Guide to the Best Outdoor Family Sites ImageThe Internet Outdoor Family Fun Yellow Pages: The Online Guide to the Best Outdoor Family Sites
by Jack Sanders
International Marine Publishing; Published: 1999-05-25; Paperback; Book
Best price: $15.56
Price in other shops: $19.95
Similar Books and other products
Head First C#, 2E: A Learner's Guide to Real-World Programming with Visual C# and .NET (Head First Guides) ImageHead First C#, 2E: A Learner's Guide to Real-World Programming with Visual C# and .NET (Head First Guides)
by Andrew Stellman, Jennifer Greene
O'Reilly Media; Published: 2010-05-28; Paperback; Book
Best price: $25.98
Price in other shops: $49.99
Head First Java, 2nd Edition ImageHead First Java, 2nd Edition
by Kathy Sierra, Bert Bates, Bert Bates
O'Reilly Media; Published: 2005-02-16; Paperback; Book
Best price: $24.50
Price in other shops: $44.95
Head First Python ImageHead First Python
by Paul Barry
O'Reilly Media; Published: 2010-12-07; Paperback; Book
Best price: $20.99
Price in other shops: $49.99
Head First Ajax ImageHead First Ajax
by Rebecca M. Riordan
O'Reilly Media; Published: 2008-09-02; Paperback; Book
Best price: $23.00
Price in other shops: $44.99
Head First Web Design ImageHead First Web Design
by Ethan Watrall, Jeff Siarto
O'Reilly Media; Published: 2008-12-30; Paperback; Book
Best price: $20.00
Price in other shops: $49.99
Head First jQuery ImageHead First jQuery
by Ryan Benedetti, Ronan Cranley
O'Reilly Media; Published: 2011-09-29; Paperback; Book
Best price: $22.73
Price in other shops: $39.99
Head First JavaScript ImageHead First JavaScript
by Michael Morrison
O'Reilly Media; Published: 2008-01-11; Paperback; Book
Best price: $22.24
Price in other shops: $39.99
Head First SQL: Your Brain on SQL -- A Learner's Guide ImageHead First SQL: Your Brain on SQL -- A Learner's Guide
by Lynn Beighley
O'Reilly Media; Published: 2007-09-01; Paperback; Book
Best price: $22.00
Price in other shops: $44.99
Head First HTML5 Programming: Building Web Apps with JavaScript ImageHead First HTML5 Programming: Building Web Apps with JavaScript
by Eric Freeman, Elisabeth Robson
O'Reilly Media; Published: 2011-10-18; Paperback; Book
Best price: $27.16
Price in other shops: $49.99
Head First HTML with CSS & XHTML ImageHead First HTML with CSS & XHTML
by Eric T Freeman, Elisabeth Freeman, Elisabeth Robson
O'Reilly Media; Published: 2005-12-15; Paperback; Book
Best price: $16.97
Price in other shops: $39.99
Book store. Illustrated catalog of books on different categories