13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Contents<br />

xxvii<br />

Using Session Variables 513<br />

Unsetting Variables <strong>and</strong> Destroying the<br />

Session 513<br />

Creating a Simple Session Example 514<br />

Configuring Session Control 516<br />

Implementing Authentication with Session<br />

Control 517<br />

Further Reading 524<br />

Next 524<br />

24 Other Useful Features 525<br />

Evaluating Strings: eval() 525<br />

Terminating Execution: die() <strong>and</strong> exit() 526<br />

Serializing Variables <strong>and</strong> Objects 526<br />

Getting Information About the <strong>PHP</strong><br />

Environment 528<br />

Finding Out What Extensions Are Loaded 528<br />

Identifying the Script Owner 529<br />

Finding Out When the Script Was<br />

Modified 529<br />

Temporarily Altering the Runtime Environment 529<br />

Highlighting Source Code 530<br />

Using <strong>PHP</strong> on the Comm<strong>and</strong> Line 531<br />

Next 532<br />

V Building Practical <strong>PHP</strong> <strong>and</strong> <strong>MySQL</strong><br />

Projects<br />

25 Using <strong>PHP</strong> <strong>and</strong> <strong>MySQL</strong> for Large<br />

Projects 535<br />

Applying Software Engineering to <strong>Web</strong><br />

<strong>Development</strong> 536<br />

Planning <strong>and</strong> Running a <strong>Web</strong> Application Project 536<br />

Reusing Code 537<br />

Writing Maintainable Code 538<br />

Coding St<strong>and</strong>ards 538<br />

Breaking Up Code 541

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!