PHP 5 Advanced: Visual QuickPro Guide (2nd Edition)

Welcome to the companion Web site for the second edition of the book PHP 5 Advanced: Visual QuickPro Guide, written by Larry Ullman and published by Peachpit Press. This page is specifically for the book’s second edition, published in March 2007 (ISBN 0-321-37601-3). The first edition was published in December 2001 (ISBN 0-201-77597-2). If you are using the first edition of the book, you should go to that page.

Beside the handful of pages dedicated to this edition of this book, there’s plenty of other content on LarryUllman.com that you might be interested in. Use the “Post Categories” links above to browse by general topic.

You can download the code for the book using the link below. If you have any questions or problems, I’d recommend using the book’s corresponding support forum, where you’ll get the fastest answer.

Downloads

Every script in the text is available here to be downloaded. Some things you should know:

  • Although these scripts are named or numbered as they are in the book, they do include any updates and changes as warranted by errors that were found after publication. Thus, if you are having problems with a particular script, download the most current version here or check the errata section.
  • The URLs as referenced in the book (e.g. http://www.DMCinsights.com/php/hello.php) are not available for execution online.
  • These are the scripts for the SECOND EDITION of the book. If you are using a different edition, click the appropriate link above to find the correct page.
  • These scripts have been formatted with line breaks that will work on most systems running most text editors. If you have difficulty opening a script, try:
    • adjusting the way your text editor treats text files
    • using a different text editor, if possible
    • posting a message to the online forum, asking for help

Complete Set of Scripts and SQL Commands

phpvqp2_scripts.zip (119 KB, last modified 04/18/2011)

Extras (CSS and Images)

phpvqp2_extras.zip (37 KB)

Scripts for Online Chapters

phpvqp2_CreatingPDFs_scripts.zip (25 KB)
phpvqp2_ImageGeneration_scripts.zip (12 KB)

37 responses to PHP 5 Advanced: Visual QuickPro Guide (2nd Edition)

  1. The link for phpvqp2_scripts.zip is wrong ,it seems to be linked with a script of another book. please correct it.
    Thank you.
    Sorry for my poor English.

  2. wow. Had this book for a week, and smoke is steadily pouring out of my ears. This is what I have been looking for to take my skills to the next level. 500 pages of Larry Ullman is worth more than 5000 pages of other books.

  3. Will this book clarify everything related to OOPS and Advanced programming in php

    • Yes, yes, it does. Or at least I hope it does. It teaches OOP in PHP 5 for those unfamiliar with OOP. It also has several real-world OOP uses. Thanks for your interest in the book!

  4. Mr. Ullman,
    I just finished the PHP 6 and MySQL 5 book. This is an excellent book! Thank you so much! This is exactly what I was hoping to find on the subject. Now, I would like to buy the PHP 5 Advanced book but wonder if you plan to update it to PHP 6 and if so, when?

    • Thank you very much for the nice words. I’m glad you liked it and thanks for your continued interest in my other books. I currently don’t have any plans to update the PHP 5 Advanced book, which means it won’t happen in 2011. PHP 6, by the way, is in a state of limbo and it’s highly unlikely that the next major release of PHP will be anytime in the near future either. Thanks again!

  5. Arif mahmud rana May 25, 2011 at 8:53 am

    How to download the bonus chapters. Please mention it.

  6. Hello Larry,

    I am an old fan of yours, check your records, and this is the reason I turned to you..

    I utilize AJAX in my applications and would like to know of a secure way to integrate it within my applications, that is using PHP + AJAX.

    The major concern is to ensure that the page that is being called is the one that has actually initiated it and that is usually solved with a token.. looking to dig deeper within this area.

    Are you able to refer to the article that you see suitable please ?

    • Thanks for the comments and for being a long-time fan! Much appreciated. I’m not exactly sure what you’re asking here, but if you post a message in a support forum I’d be glad to assist there. Thanks!

  7. Hi Larry,
    If all coding books were as well thought out as yours there wouldn’t be such badly written code loose in the wild.
    How about a PHP5 OOP book for your next effort – perhaps using PDO.

    • Thank you very much, Andy, for the nice words. Quite nice to hear! Thanks, too, for the suggestion. The PHP Advanced book is where I discuss OOP, among other topics. I’m starting to think about the third edition, though, and will be doing more OOP in it. It’ll come out summer 2012.

  8. Hello Larry,

    I wanted to ask if you still recommend Pear Auth for authentication or are there some other viable contenders out there today?

    Thanks,

    • Thanks for the question. I don’t have a strong opinion on this. PEAR Auth hasn’t been dropped yet and its latest version isn’t that old, so I wouldn’t have a problem recommending PEAR Auth still.

  9. I am having a hard time getting PHP – SOAP to work. I believe the problem is a simple one that I am overlooking. That is usually the case in situations like this. Can you recommend a source of information about this subject that actually has sample code that works? BTW, PHP 5.3.3.

    Thanks for your help.

    • I can’t recommend anything offhand. I’d start with the PHP manual and then a Google search. If you’d like help from me, then please use the support forums.

  10. Hi Larry,
    I finished reading php.and.mysql.for.dynamic.web.sites.visual.quickpro.guide. Really want to thanks you for such a wonderful books and wonderful explanation on php. what ever i need to learn on web i ll just go through your book.

    Now i have started reading PHP 5 advanced I just want to ask whether your planning for book on oops concept other than PHP 5 Advanced.

    Thanks

    • Thank you very much for the nice words and for the interest in my books. In answer to your question, the PHP Advanced book is my OOP book; I do not have plans for another. But I’m currently writing the third edition and discuss OOP in more detail in it.

  11. i like your every book. can make video tutorials as well, that would be awesome

  12. Hi Larry, I’ve just finished reading your PHP and MySQL for dymanic web sites 4th edition book. Firstly thank you so much for taking the time and effort to do this. I’ve struggled to get into other books but this book has been brilliant you certainly explain everything I want to know! I see in here you reference the PHP 5 Advanced book and I notice on amazon that there’s a 3rd edition (of php-5-advanced-visual-quickpro-guide) which is yet to be released. I’m not sure how the publishing world works but are you able to advise how long the wait for the 3rd edition could be? Do you suggest I wait or if the wait is something like 12 months I should go and purchase the 2nd edition? Thanks again. Kind Regards, Alan

    • Thank you very much, Alan. I’m glad you like my work and it’s nice of you to say so. The 3rd edition of the PHP Advanced book will be out in September. Specific availability depends upon where you’re at in the world and what format you need. Thanks again!

      • Your welcome Larry. You really have helped me into a new language and I tried 3 other books before yours. I’ll be ordering your 3rd edition as soon as it comes out.

  13. In PHP 5 Advanced, you have said that static methods cannot be accessed using the objects of that class. You have said it can only be accessed by using the scope resolution operator with the class name(ClassName::method()). But i can access a static method using the class object itself, is it because i have a later version’s of PHP. ?

  14. I came across this book as a pdf and loved it instantly, just bought a hard copy it’s a must have for any programmers library!

    Great work!

  15. Hi Larry, i have a problem on Chapter 09 with the Ip geolocation, when i try to run it, it says Undefined index COUNTRY in $results['COUNTRY'], i’ve followed all of the steps but still there’s an undefined index. Sorry for my english. And i would like to say that you are a great author and programmer larry, i’ve learned a lot from your books. and i wish you will write more PHP tutorials books. Thanks Larry!

    — your no.1 fan in the philippines

  16. Hi Larry! I’m following the instructions on Chapter 5 for the ECommerce section and I get error messages in the Browse Widget Categories

    Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home1/mark1234/public_html/includes/header.html on line 33

    Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in /home1/mark1234/public_html/includes/header.html on line 34.

    Can you tell me where I’m going wrong or do I need to link these to the category database. Can you explain? It would be a tremendous help.

Trackbacks and Pingbacks:

  1. What is Larry Thinking? #33 => Effortless E-Commerce and OOP – Larry Ullman - November 20, 2010

    [...] an OOP book (and thanks for the interest!). In case you’re not familiar with it, my “PHP 5 Advanced: Visual QuickPro Guide” book has about 150 pages or so dedicated to OOP in PHP from A to Z. Specifically the book [...]

  2. What is Larry Thinking? #38 => Building a Career – Larry Ullman - March 22, 2011

    [...] it into previous editions of this book (by comparison, I walk through OOP in detail in my “PHP 5 Advanced: Visual QuickPro Guide” book, and it takes about 150 pages). However, the great thing about OOP is that you can [...]

  3. What is Larry Thinking? #41 => Doing What I Do, Part 2 – Larry Ullman - June 9, 2011

    [...] 2012, I’m planning on (and the publisher has agreed to) doing the third edition of my “PHP 5 Advanced: Visual QuickPro Guide“. Share [...]

  4. Insert Zip Codes .CSV into MySQL — seojeek - October 3, 2011

    [...] This is a good exercise if you are learning how to navigate around MySQL. This activity is in reference to Chapter 3 of Larry Ullman’s PHP 5 Advanced. [...]

  5. What is Larry Thinking? #51 => Books! – Larry Ullman - February 21, 2012

    [...] QuickPro Guide (3rd Edition)Next month, I’m going to start working on the third edition of my “PHP 5 Advanced: Visual QuickPro Guide”. The PHP 5 Advanced book is somewhat different than my other books in that it discusses a number [...]

Comments are great, but I'd strongly prefer any requests for assistance get made in the support forums. Thanks!