Introduction |
|
ix | |
Chapter 1 Getting Started with PHP |
|
1 | (30) |
|
|
2 | (5) |
|
|
7 | (3) |
|
|
10 | (2) |
|
|
12 | (3) |
|
Sending Text to the Browser |
|
|
15 | (3) |
|
|
18 | (3) |
|
Sending HTML to the Browser |
|
|
21 | (3) |
|
Adding Comments to Scripts |
|
|
24 | (3) |
|
|
27 | (2) |
|
|
29 | (2) |
Chapter 2 Variables |
|
31 | (18) |
|
|
32 | (4) |
|
|
36 | (2) |
|
|
38 | (3) |
|
|
41 | (3) |
|
Understanding Quotation Marks |
|
|
44 | (4) |
|
|
48 | (1) |
Chapter 3 HTML Forms and PHP |
|
49 | (26) |
|
|
50 | (4) |
|
|
54 | (4) |
|
Receiving Form Data in PHP |
|
|
58 | (5) |
|
|
63 | (2) |
|
|
65 | (3) |
|
Manually Sending Data to a Page |
|
|
68 | (5) |
|
|
73 | (2) |
Chapter 4 Using Numbers |
|
75 | (18) |
|
|
76 | (3) |
|
|
79 | (4) |
|
|
83 | (3) |
|
|
86 | (2) |
|
Incrementing and Decrementing a Number |
|
|
88 | (4) |
|
|
92 | (1) |
Chapter 5 Using Strings |
|
93 | (28) |
|
|
94 | (3) |
|
|
97 | (4) |
|
|
101 | (3) |
|
|
104 | (4) |
|
Encoding and Decoding Strings |
|
|
108 | (5) |
|
|
113 | (4) |
|
Replacing Parts of a String |
|
|
117 | (3) |
|
|
120 | (1) |
Chapter 6 Control Structures |
|
121 | (38) |
|
|
122 | (3) |
|
|
125 | (3) |
|
|
128 | (4) |
|
|
132 | (3) |
|
|
135 | (9) |
|
|
144 | (4) |
|
|
148 | (4) |
|
|
152 | (5) |
|
|
157 | (2) |
Chapter 7 Using Arrays |
|
159 | (34) |
|
|
160 | (2) |
|
|
162 | (4) |
|
|
166 | (4) |
|
|
170 | (3) |
|
Creating Multidimensional Arrays |
|
|
173 | (5) |
|
|
178 | (4) |
|
Transforming Between Strings and Arrays |
|
|
182 | (4) |
|
Creating an Array from a Form |
|
|
186 | (5) |
|
|
191 | (2) |
Chapter 8 Creating Web Applications |
|
193 | (50) |
|
|
194 | (7) |
|
|
201 | (6) |
|
|
207 | (4) |
|
Working with the Date and Time |
|
|
211 | (3) |
|
Handling HTML Forms with PHP, Revisited |
|
|
214 | (6) |
|
|
220 | (8) |
|
|
228 | (5) |
|
|
233 | (4) |
|
Manipulating HTTP Headers |
|
|
237 | (4) |
|
|
241 | (2) |
Chapter 9 Cookies and Sessions |
|
243 | (26) |
|
|
244 | (2) |
|
|
246 | (5) |
|
|
251 | (3) |
|
Adding Parameters to a Cookie |
|
|
254 | (3) |
|
|
257 | (3) |
|
|
260 | (1) |
|
|
261 | (3) |
|
Accessing Session Variables |
|
|
264 | (2) |
|
|
266 | (2) |
|
|
268 | (1) |
Chapter 10 Creating Functions |
|
269 | (28) |
|
Creating and Using Simple Functions |
|
|
270 | (6) |
|
Creating and Calling Functions That Take Arguments |
|
|
276 | (6) |
|
Setting Default Argument Values |
|
|
282 | (3) |
|
Creating and Using Functions That Return a Value |
|
|
285 | (5) |
|
Understanding Variable Scope |
|
|
290 | (6) |
|
|
296 | (1) |
Chapter 11 Files and Directories |
|
297 | (48) |
|
|
298 | (5) |
|
|
303 | (7) |
|
|
310 | (3) |
|
|
313 | (3) |
|
|
316 | (9) |
|
|
325 | (5) |
|
|
330 | (8) |
|
Reading Files Incrementally |
|
|
338 | (5) |
|
|
343 | (2) |
Chapter 12 Intro to Databases |
|
345 | (44) |
|
|
346 | (2) |
|
|
348 | (4) |
|
|
352 | (3) |
|
|
355 | (5) |
|
Inserting Data into a Database |
|
|
360 | (6) |
|
|
366 | (5) |
|
Retrieving Data from a Database |
|
|
371 | (5) |
|
Deleting Data in a Database |
|
|
376 | (6) |
|
Updating Data in a Database |
|
|
382 | (6) |
|
|
388 | (1) |
Chapter 13 Putting It All Together |
|
389 | (38) |
|
|
390 | (2) |
|
Connecting to the Database |
|
|
392 | (1) |
|
Writing the User-Defined Function |
|
|
393 | (3) |
|
|
396 | (4) |
|
|
400 | (4) |
|
|
404 | (1) |
|
|
405 | (4) |
|
|
409 | (3) |
|
|
412 | (6) |
|
|
418 | (4) |
|
|
422 | (4) |
|
|
426 | (1) |
Appendix A Installation and Configuration |
|
427 | (22) |
Appendix B Resources and Next Steps |
|
449 | (10) |
Index |
|
459 | |