Specifications
CONTENTS
Simple Session Example ....................................................................435
Configuring Session Control ..............................................................437
Implementing Authentication with Session Control ..........................438
Further Reading ..................................................................................445
Next ....................................................................................................445
21 Other Useful Features 447
Using Magic Quotes ..........................................................................448
Evaluating Strings: eval() ..................................................................449
Terminating Execution: die and exit ..................................................450
Serialization ........................................................................................450
Getting Information About the PHP Environment ............................451
Finding Out What Extensions Are Loaded ..................................451
Identifying the Script Owner ........................................................452
Finding Out When the Script Was Modified ................................452
Loading Extensions Dynamically ......................................................453
Temporarily Altering the Runtime Environment ................................453
Source Highlighting ............................................................................454
Next ....................................................................................................455
PART V Building Practical PHP and MySQL Projects 457
22 Using PHP and MySQL for Large Projects 459
Applying Software Engineering to Web Development ......................460
Planning and Running a Web Application Project ............................461
Reusing Code ......................................................................................462
Writing Maintainable Code ................................................................463
Coding Standards ..........................................................................463
Breaking Up Code ........................................................................466
Using a Standard Directory Structure ..........................................467
Documenting and Sharing In-House Functions ............................467
Implementing Version Control ............................................................467
Choosing a Development Environment ..............................................469
Documenting Your Projects ................................................................470
Prototyping ..........................................................................................471
Separating Logic and Content ............................................................471
Optimizing Code ................................................................................472
Using Simple Optimizations ........................................................472
Using Zend Products ....................................................................473
Testing ................................................................................................474
Further Reading ..................................................................................475
Next ....................................................................................................475
xvii
00 7842 FM 3/6/01 3:38 PM Page xvii