eBooks Download Source Code
Code downloads
PHP Tutorials: Programming with MySQL and PHP

The PHP code for the latest version of the book can be obtained in one zip file from the link below:
Download Source Code for PHP Tutorials Book (5th Edition)
The book references the code by chapter and name so you should be able to easily find any particular script that you are looking for.
Archive Source Code
The source code for edition 4 of the book can be obtained in one zip file from the link below:
Archive Source Code for PHP Tutorials Book (4th Edition)
HTML Beginners, Basics of Web Design

The HTML code for the latest version of the book can be obtained in one zip file from the link below:
Download Source Code for HTML Beginners Book
The book references the code by chapter and name so you should be able to easily find any particular script that you are looking for.