James Lee is founder and CEO of Onsight Inc., an Open Source training and development company. He has developed a number of Web sites using Linux, Apache, MySQL, mod_perl, Embperl, and related technologies. A contributor to Linux Journal, he is the coauthor of Hacking Linux Exposed (McGraw-Hill/Osborne, 2001).
Brent Ware holds a Ph.D. in physics and an M.S. in electrical engineering and is currently a scientist at NASA/Caltech¿s Jet Propulsion Labs in Pasadena, California. He has been a system administrator of Linux, Unix, and Mac OS X systems and also contributed to Hacking Linux Exposed (McGraw-Hill, 2001).
Foreword | p. xvii |
Preface | p. xix |
Acknowledgments | p. xxiii |
About the Authors | p. xxv |
Introduction | p. xxvii |
The Best of All Possible Worlds | p. xxviii |
Open Source Software | p. xxviii |
Summary | p. xxxiii |
Resources | p. xxxiv |
Structural | p. 1 |
The Web Explained | p. 3 |
How It Works | p. 3 |
What We Don't Talk About | p. 8 |
Security | p. 9 |
Summary | p. 10 |
Resources | p. 10 |
Linux--The Choice of a GNU Generation | p. 11 |
Introduction | p. 11 |
Basic Unix | p. 20 |
Summary | p. 31 |
Resources | p. 31 |
Apache Web Server | p. 33 |
Introduction | p. 33 |
Starting, Stopping, and Restarting Apache | p. 36 |
Configuration | p. 39 |
Securing Apache | p. 41 |
Create the Web Site | p. 46 |
Apache Log Files | p. 50 |
Summary | p. 55 |
Resources | p. 55 |
Perl | p. 57 |
Introduction | p. 57 |
Perl Documentation | p. 58 |
Perl Syntax Rules | p. 59 |
A Quick Introduction to Object-Oriented Programming | p. 104 |
What We Didn't Talk About | p. 106 |
Summary | p. 107 |
Resources | p. 107 |
MySQL | p. 109 |
Introduction | p. 109 |
Tutorial | p. 109 |
Database Independent Interface | p. 122 |
Table Joins | p. 127 |
Loading and Dumping a Database | p. 129 |
Summary | p. 130 |
Resources | p. 130 |
Static | p. 131 |
Website META Language | p. 133 |
Introduction | p. 133 |
Installation | p. 135 |
The Basics | p. 135 |
Creating a Template | p. 138 |
Other Helpful Includes | p. 147 |
Diversion | p. 162 |
A Better Template | p. 165 |
Configuring WML with .wm1rc | p. 167 |
Macros--Creating Custom Tags | p. 170 |
Programming Code--eperl | p. 174 |
Project | p. 179 |
Summary | p. 184 |
Dynamic | p. 185 |
The Common Gateway Interface | p. 187 |
Introduction | p. 187 |
Apache Configuration | p. 190 |
A First CGI Program | p. 191 |
What Can Go Wrong? | p. 196 |
CGI.pm Introduced | p. 197 |
CGI.pm HTML Shortcuts | p. 200 |
Information Received by the CGI Program | p. 202 |
Form Widget Methods | p. 216 |
CGI Security Considerations | p. 218 |
A Note about die() | p. 222 |
Project--CGI/MySQL/DBI | p. 223 |
Summary | p. 230 |
Resources | p. 230 |
mod_perl | p. 231 |
Introduction | p. 231 |
Configuration | p. 233 |
Turning CGIs into mod_perl Programs | p. 235 |
Pure mod_perl Programming | p. 243 |
Project: MySQL, DBI, and mod_perl | p. 253 |
Other Stuff You Can Do | p. 272 |
Summary | p. 273 |
Resources | p. 273 |
Embedded | p. 275 |
Server Side Includes | p. 277 |
Introduction | p. 277 |
Security Considerations | p. 286 |
Summary | p. 286 |
Resources | p. 286 |
Embperl (HTML::Embper1) | p. 287 |
Introduction | p. 287 |
Installing Embperl | p. 288 |
Apache Configuration | p. 289 |
A Quick Example | p. 291 |
Embperl Commands | p. 292 |
Posted Data and %fdat | p. 299 |
Other Empberl Variables--$row and $co1 | p. 301 |
Embperl Project | p. 304 |
What We Didn't Talk About | p. 327 |
Summary | p. 329 |
Resources | p. 329 |
Mason (HTML::Mason) | p. 331 |
Introduction | p. 331 |
Installation | p. 333 |
Apache Configuration | p. 334 |
A Quick Example | p. 335 |
Inline Perl Sections | p. 336 |
Handling Posted Data with %ARGS and [left angle bracket]%args[right angle bracket] | p. 343 |
Mason Components | p. 348 |
Mason Project | p. 357 |
What We Didn't Talk About | p. 372 |
Summary | p. 375 |
Resources | p. 375 |
PHP | p. 377 |
Introduction | p. 377 |
Embedding PHP into HTML | p. 378 |
Configuration | p. 379 |
A Couple of Quick Examples | p. 379 |
Language Syntax | p. 381 |
Built-In PHP Functions | p. 405 |
PHP and MySQL | p. 411 |
Project | p. 420 |
Summary | p. 431 |
Resources | p. 431 |
Bibliography | p. 433 |
Index | p. 437 |
Table of Contents provided by Syndetics. All Rights Reserved. |
The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.
The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.