. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Phase I: Getting a Site Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Phase II: Creating Your Own Shopping Cart. . . . . . . . . . . . . . . . . . . . . . 8
Phase III: Processing Orders and Adding Features. . . . . . . . . . . . . . . . 8
TShirtShop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
?– CHAPTER 2 Laying Out the Foundations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Designing for Growth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Meeting Long-Term Requirements with Minimal Effort . . . . . . . . . . 14
The Magic of the Three-Tier Architecture . . . . . . . . . . . . . . . . . . . . . . 15
Choosing Technologies and Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Using PHP to Generate Dynamic Web Content . . . . . . . . . . . . . . . . . . 20
Using Smarty to Separate Layout from Code . . . . . . . . . . . . . . . . . . . 21
Using MySQL to Store Web Site Data . . . . . . . . . . . . . . . . . . . . . . . . . . 23
MySQL and the Three-Tier Architecture.
Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25