Open source Web development with LAMP: using Linux, Apache, MySQL, Perl, and PHP 020177061X, 9780201770612

Open Source technologies are providing contemporary developers with a range of more cost-effective and robust alternativ

1,444 159 3MB

English Pages xxxiv, 460 pages: illustrations; 24 cm [497] Year 2002;2003

Report DMCA / Copyright

DOWNLOAD FILE

Open source Web development with LAMP: using Linux, Apache, MySQL, Perl, and PHP
 020177061X, 9780201770612

Table of contents :
Cover......Page 1
Contents......Page 8
Foreword......Page 18
Preface......Page 20
Acknowledgments......Page 24
About the Authors......Page 26
Introduction......Page 28
I.2 Open Source Software......Page 29
I.4 Resources......Page 34
PART I: STRUCTURAL......Page 36
1.1 How It Works......Page 38
1.2 What We Don’t Talk About......Page 43
1.3 Security......Page 44
1.5 Resources......Page 45
2.1 Introduction......Page 46
2.2 Basic Unix......Page 55
2.4 Resources......Page 66
3.1 Introduction......Page 68
3.2 Starting, Stopping, and Restarting Apache......Page 71
3.3 Configuration......Page 74
3.4 Securing Apache......Page 76
3.5 Create the Web Site......Page 81
3.6 Apache Log Files......Page 85
3.8 Resources......Page 90
4.1 Introduction......Page 92
4.2 Perl Documentation......Page 93
4.3 Perl Syntax Rules......Page 94
4.4 A Quick Introduction to Object-Oriented Programming......Page 139
4.5 What We Didn’t Talk About......Page 141
4.7 Resources......Page 142
5.2 Tutorial......Page 144
5.3 Database Independent Interface......Page 157
5.4 Table Joins......Page 162
5.5 Loading and Dumping a Database......Page 164
5.7 Resources......Page 165
PART II: STATIC......Page 166
6.1 Introduction......Page 168
6.3 The Basics......Page 170
6.4 Creating a Template......Page 173
6.5 Other Helpful Includes......Page 182
6.6 Diversion......Page 197
6.7 A Better Template......Page 200
6.8 Configuring WML with .wmlrc......Page 202
6.9 Macros—Creating Custom Tags......Page 205
6.10 Programming Code—eperl......Page 209
6.11 Project......Page 214
6.12 Summary......Page 219
PART III: DYNAMIC......Page 220
7.1 Introduction......Page 222
7.2 Apache Configuration......Page 225
7.3 A First CGI Program......Page 226
7.4 What Can Go Wrong?......Page 231
7.5 CGI.pm Introduced......Page 232
7.6 CGI.pm HTML Shortcuts......Page 235
7.7 Information Received by the CGI Program......Page 237
7.8 Form Widget Methods......Page 251
7.9 CGI Security Considerations......Page 253
7.10 A Note about die()......Page 257
7.11 Project—CGI/MySQL/DBI......Page 258
7.13 Resources......Page 265
8.1 Introduction......Page 266
8.2 Configuration......Page 268
8.3 Turning CGIs into mod perl Programs......Page 270
8.4 Pure mod perl Programming......Page 278
8.5 Project: MySQL, DBI, and mod_perl......Page 288
8.6 Other Stuff You Can Do......Page 307
8.8 Resources......Page 308
PART IV: EMBEDDED......Page 310
9.1 Introduction......Page 312
9.4 Resources......Page 321
10.1 Introduction......Page 322
10.2 Installing Embperl......Page 323
10.3 Apache Configuration......Page 324
10.4 A Quick Example......Page 326
10.5 Embperl Commands......Page 327
10.6 Posted Data and %fdat......Page 334
10.7 Other Embperl Variables—$row and $col......Page 336
10.8 Embperl Project......Page 339
10.9 What We Didn’t Talk About......Page 362
10.11 Resources......Page 364
11.1 Introduction......Page 366
11.2 Installation......Page 368
11.3 Apache Configuration......Page 369
11.4 A Quick Example......Page 370
11.5 Inline Perl Sections......Page 371
11.6 Handling Posted Data with %ARGS and ......Page 378
11.7 Mason Components......Page 383
11.8 Mason Project......Page 392
11.9 What We Didn’t Talk About......Page 407
11.11 Resources......Page 410
12.1 Introduction......Page 412
12.2 Embedding PHP into HTML......Page 413
12.4 A Couple of Quick Examples......Page 414
12.5 Language Syntax......Page 416
12.6 Built-In PHP Functions......Page 440
12.7 PHP and MySQL......Page 446
12.8 Project......Page 455
12.10 Resources......Page 466
Bibliography......Page 468
A......Page 472
B......Page 473
C......Page 474
D......Page 476
E......Page 477
F......Page 478
G......Page 479
H......Page 480
J......Page 481
L......Page 482
M......Page 483
O......Page 485
P......Page 486
R......Page 488
S......Page 489
U......Page 492
W......Page 493
Z......Page 495

Polecaj historie