PHP 4.2 Update of the Source Code from Web Database Applications with PHP and MySQL

The release of PHP 4.1 brought about significant changes to the default techniques used to access external variables from within PHP. In short, the register_globals option in the php.ini file is now by default set to off, which means that GET, POST, session, and environment variables are no longer automatically registered as global variables of the same name. Instead, these variables must be accessed as elements of several "super globals". In addition, many PHP installs now have the short_open_tag=Off setting, meaning that the use of <? is not allowed and that <?php should be used instead. A good, short treatment of these changes can be found here.

In response to these changes, we have updated the source code for our book. Detailed changes for each chapter are listed below; most changes are as the direct result of variable access changes or because of short tag requirements. In addition, there are selected bug fixes in response to reader feedback. Please contact Hugh Williams at hugh @ hughwilliams.com with any suggestions or corrections.

Global and Miscellaneous Changes

Chapter 5 Changes

Chapter 6 Changes

Chapter 7 Changes

Chapter 8 Changes

Chapter 9 Changes

Chapter 10 Changes

Chapter 11 Changes

Chapter 12 Changes

Appendix D Changes