Skip to Content
PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
book

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

by Larry Ullman
May 2003
Intermediate to advanced
592 pages
14h 28m
English
Peachpit Press
Content preview from PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

Writing the Configuration Scripts

This Web site will make use of two configuration-type scripts. One, config.inc, will manage errors. The other, mysql_connect.php, will store all of the database-related information.

Making a configuration file

The sole purpose of the configuration file will be to set the error-management policy of the site. During the development stages, I’ll want every error reported and, when one occurs, a bold error message should be printed to the Web browser (Figure 12.3). During the production, or live, stage of the site, I’ll want to handle errors more gracefully. At that time, I’ll turn error reporting off entirely and have an email sent when one does occur. With any luck that should rarely be necessary.

Figure 12.3. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

Larry Ullman

Publisher Resources

ISBN: 0321186486Purchase book