PHP Solutions second edition now available

It’s almost exactly four years since PHP Solutions: Dynamic Web Design Made Easy was first published. The book has proved extremely popular, but a lot has happened in PHP since it was first published. Support for PHP 4 was abandoned in August 2008, and major improvements were made to PHP in versions 5.2 and 5.3. So, it was time to dust off the code, and bring it up to date.

I spent most of the summer going through every chapter and all the code line by line, correcting errors and making the code more efficient. The result is a major rewrite, PHP Solutions: Dynamic Web Design Made Easy, Second Edition, which is now in stock at Amazon in the United States, and should be available elsewhere soon. It’s also available in electronic form as a Kindle version, or as a PDF from the friends of ED website.

There’s a detailed description of what the book covers and how it differs from the first edition elsewhere on this site. If you have recently bought the first edition, don’t worry. There’s nothing actually wrong with the original code, but do make sure you check the updates on my site, as well as the corrections on the friends of ED site.

When downloading the accompanying files from friends of ED, make sure you get the files for the correct edition:

This entry was posted in Books, MySQL, PHP, phpMyAdmin. Bookmark the permalink.

57 Responses to PHP Solutions second edition now available

  1. Darasimi says:

    Good work. Your first edition was a wonderful piece. Enjoyed using it. But I will like to ask for your help. My host supports allow_url_fopen, and I want to use it to open a remote page using dreamweaver as my editor. Could you help me please? {I am opening a page that is like three levels down the homepage. Something like} Thanks.

  2. Tim Philp says:

    I am enjoying your book PHP Solutions. I very much appreciate the information. It is clear and concise and well-organized (can you tell that I am a writer who reviews books? )
    Actually, I have a more mundain issue to ask. Most books of this type have a downloadable disk of code to save me working my fingers to the bone typing in code. I cannot find such a thing on your website. Can you please point me in the right direction?

    Much appreciated.

    Tim Philp

  3. David Powers says:

    Ah, thank you for alerting me to that. The URL on page xvii of the book is no longer valid because the parent company of friends of ED (Apress) decided to merge the friends of ED website with its own not so long ago. The download files can be accessed through the book’s page on the Apress website. The direct link for the files is I’ll put a note in the book’s updates and corrections page on my site.

  4. JonF says:

    David, we are in the processing of a) moving hosts b) converting our site from html to php. We currently use Server Side Includes for headers, footers, google adsense code, etc.. which served us well when we were a flat site. I would like to transition to PHP after reading your book. My confusion is with 301 redirects. I have been researching various methods and there does not seem to be a consistent method. What is your recommendation?

    parsing and html file as php?
    AddHandler applicatin/x-httpd-php5 .html .htm .php


    RedirectMatch 301 (.*)\.html$ http://www…$1.php


    RewriteEngine On RewriteBase / RewriteRule ^index\.html?$ / [NC,R,L]

    I would like to find the best way to maintain my Google page rank. I’m nervous about converting the entire site from .html to .php since other posts mentioned utilizing the parsing method. Please help! Thanks.

  5. David Powers says:

    Hi JonF,

    Sorry, I’m not an expert in Apache redirects and wouldn’t like to give you misleading advice. You need to consult an Apache system administrator for advice. Hope all goes well with your migration to PHP.

  6. LI Holen says:

    I downloaded you files, but can’t find blog.sql…..

  7. David Powers says:

    There’s a link to download it on the book’s corrections and updates page. Also, here’s a direct link to the file.