. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370
File-based Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
Database-based Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
IP-based Authentication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
Taking Advantage of PEAR: Auth_HTTP . . . . . . . . . . . . . . . . . . . . . . 377
User Login Administration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
Testing Password Guessability with the CrackLib Library . . . . . . . 380
One-Time URLs and Password Recovery. . . . . . . . . . . . . . . . . . . . . 383
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386
?– CHAPTER 15 Handling File Uploads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
Uploading Files via HTTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
Uploading Files with PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
PHP??™s File Upload/Resource Directives . . . . . . . . . . . . . . . . . . . . . . 389
The $_FILES Array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
PHP??™s File-Upload Functions . . . . . . . . . . . . . . . . . . . . .
Pages:
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38