| |
| |
Introduction | |
| |
| |
| |
Exploring the PHP Environment | |
| |
| |
Introducing the Tip of the Day Program | |
| |
| |
Programming on the Web Server | |
| |
| |
Installing PHP and Apache | |
| |
| |
Installing Apache | |
| |
| |
Installing PHP | |
| |
| |
Adding PHP to Your Pages | |
| |
| |
Configuring Your Version of PHP | |
| |
| |
Creating the Tip of the Day Program | |
| |
| |
Summary | |
| |
| |
| |
Using Variables and Input | |
| |
| |
Introducing the Story Program | |
| |
| |
Using Variables in Your Scripts | |
| |
| |
Using Variables for More-Complex Pages | |
| |
| |
Working with Numeric Variables | |
| |
| |
Creating a Form to Ask a Question | |
| |
| |
Sending Data without a Form | |
| |
| |
Reading Input from Other Form Elements | |
| |
| |
Returning to the Story Program | |
| |
| |
Summary | |
| |
| |
| |
Controlling Your Code with Conditions and Functions | |
| |
| |
Examining the Petals Around the Rose Game | |
| |
| |
Creating a Random Number | |
| |
| |
Using the if Statement to Control Program Flow | |
| |
| |
Working with Negative Results | |
| |
| |
Working with Multiple Values | |
| |
| |
Using the switch Structure to Simplify Programming | |
| |
| |
Combining a Form and Its Results | |
| |
| |
Responding to Checkboxes | |
| |
| |
Using Functions to Encapsulate Parts of the Program | |
| |
| |
Using Parameters and Function Values | |
| |
| |
Managing Variable Scope | |
| |
| |
Returning to the Petals Game | |
| |
| |
Summary | |
| |
| |
| |
Loops and Arrays | |
| |
| |
Introducing the Poker Dice Program | |
| |
| |
Counting with the for Loop | |
| |
| |
Modifying the for Loop | |
| |
| |
Using a while Loop | |
| |
| |
Working with Basic Arrays | |
| |
| |
Improving This Old Man with Arrays and Loops | |
| |
| |
Keeping Persistent Data | |
| |
| |
Writing the Poker Dice Program | |
| |
| |
Summary | |
| |
| |
| |
Better Arrays and String Handling | |
| |
| |
Introducing the Word Search Program Creator | |
| |
| |
Using the foreach Loop to Work with an Array | |
| |
| |
Creating an Associative Array | |
| |
| |
Using Built-In Associative Arrays | |
| |
| |
Creating a Multidimensional Array | |
| |
| |
Making a Two-Dimensional Associative Array | |
| |
| |
Manipulating String Values | |
| |
| |
Returning to the Word Search Creator | |
| |
| |
Summary | |
| |
| |
| |
Working with Files | |
| |
| |
Previewing the Quiz Machine | |
| |
| |
Viewing the Quiz Log | |
| |
| |
Saving a File to the File System | |
| |
| |
Loading a File from the Drive System | |
| |
| |
Reading a File into an Array | |
| |
| |
Working with Directory Information | |
| |
| |
Working with Formatted Text | |
| |
| |
Creating the QuizMachine.php Program | |
| |
| |
Summary | |
| |
| |
| |
Writing Programs with Objects | |
| |
| |
Introducing the SuperHTML Object | |
| |
| |
Understanding OOP | |
| |
| |
Building the SuperHTML Class | |
| |
| |
Summary | |
| |
| |
| |
XML and Content Management Systems | |
| |
| |
Introducing XCMS | |
| |
| |
Understanding Content Management Systems | |
| |
| |
Introducing simpleCMS | |
| |
| |
Improving the CMS with XML | |
| |
| |
Introducing XML Parsers | |
| |
| |
Returning to XCMS | |
| |
| |
Summary | |
| |
| |
| |
Using MySQL to Create Databases | |
| |
| |
Introducing the Adventure Generator Program | |
| |
| |
Using a Database Management System | |
| |
| |
Working with MySQL | |
| |
| |
Creating a Database | |
| |
| |
Writing a Script to Build a Table | |
| |
| |
Working with a Database via phpMyAdmin | |
| |
| |
Creating More-Powerful Queries | |
| |
| |
Returning to the Adventure Game | |
| |
| |
Summary | |
| |
| |
| |
Connecting to Databases within PHP | |
| |
| |
Connecting to the Hero Database | |
| |
| |
Returning to the Adventure Game Program | |
| |
| |
Summary | |
| |
| |
| |
Data Normalization | |
| |
| |
Introducing the spy Database | |
| |
| |
The badSpy Database | |
| |
| |
Designing a Better Data Structure | |
| |
| |
Building Your Data Tables | |
| |
| |
Building a Link Table for Many-to-Many Relationships | |
| |
| |
Summary | |
| |
| |
| |
Building a Three-Tiered Data Application | |
| |
| |
Introducing the SpyMaster Program | |
| |
| |
Building the Design of the SpyMaster System | |
| |
| |
Writing the Non-Library Code | |
| |
| |
Creating the spyLib Library Module | |
| |
| |
Summary | |
| |
| |
| |
Reviewing HTML and Cascading Style Sheets | |
| |
| |
| |
Using SQLite as an Alternative Data Source | |
| |
| |
Index | |