did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780201770612

Open Source Development with LAMP Using Linux, Apache, MySQL, Perl, and PHP

by ;
  • ISBN13:

    9780201770612

  • ISBN10:

    020177061X

  • Edition: 1st
  • Format: Paperback
  • Copyright: 2002-12-17
  • Publisher: Addison-Wesley Professional
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $49.99

Summary

Practical guide presents a broad survey of LAMP technologies, and shows how these solutions can be implemented efficiently and securely while improving reliability and dramatically cutting costs. Provides the most useful, practical information on a broad range of open source technologies. Softcover.

Author Biography

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).



020177061XAB08212002

Table of Contents

Forewordp. xvii
Prefacep. xix
Acknowledgmentsp. xxiii
About the Authorsp. xxv
Introductionp. xxvii
The Best of All Possible Worldsp. xxviii
Open Source Softwarep. xxviii
Summaryp. xxxiii
Resourcesp. xxxiv
Structuralp. 1
The Web Explainedp. 3
How It Worksp. 3
What We Don't Talk Aboutp. 8
Securityp. 9
Summaryp. 10
Resourcesp. 10
Linux--The Choice of a GNU Generationp. 11
Introductionp. 11
Basic Unixp. 20
Summaryp. 31
Resourcesp. 31
Apache Web Serverp. 33
Introductionp. 33
Starting, Stopping, and Restarting Apachep. 36
Configurationp. 39
Securing Apachep. 41
Create the Web Sitep. 46
Apache Log Filesp. 50
Summaryp. 55
Resourcesp. 55
Perlp. 57
Introductionp. 57
Perl Documentationp. 58
Perl Syntax Rulesp. 59
A Quick Introduction to Object-Oriented Programmingp. 104
What We Didn't Talk Aboutp. 106
Summaryp. 107
Resourcesp. 107
MySQLp. 109
Introductionp. 109
Tutorialp. 109
Database Independent Interfacep. 122
Table Joinsp. 127
Loading and Dumping a Databasep. 129
Summaryp. 130
Resourcesp. 130
Staticp. 131
Website META Languagep. 133
Introductionp. 133
Installationp. 135
The Basicsp. 135
Creating a Templatep. 138
Other Helpful Includesp. 147
Diversionp. 162
A Better Templatep. 165
Configuring WML with .wm1rcp. 167
Macros--Creating Custom Tagsp. 170
Programming Code--eperlp. 174
Projectp. 179
Summaryp. 184
Dynamicp. 185
The Common Gateway Interfacep. 187
Introductionp. 187
Apache Configurationp. 190
A First CGI Programp. 191
What Can Go Wrong?p. 196
CGI.pm Introducedp. 197
CGI.pm HTML Shortcutsp. 200
Information Received by the CGI Programp. 202
Form Widget Methodsp. 216
CGI Security Considerationsp. 218
A Note about die()p. 222
Project--CGI/MySQL/DBIp. 223
Summaryp. 230
Resourcesp. 230
mod_perlp. 231
Introductionp. 231
Configurationp. 233
Turning CGIs into mod_perl Programsp. 235
Pure mod_perl Programmingp. 243
Project: MySQL, DBI, and mod_perlp. 253
Other Stuff You Can Dop. 272
Summaryp. 273
Resourcesp. 273
Embeddedp. 275
Server Side Includesp. 277
Introductionp. 277
Security Considerationsp. 286
Summaryp. 286
Resourcesp. 286
Embperl (HTML::Embper1)p. 287
Introductionp. 287
Installing Embperlp. 288
Apache Configurationp. 289
A Quick Examplep. 291
Embperl Commandsp. 292
Posted Data and %fdatp. 299
Other Empberl Variables--$row and $co1p. 301
Embperl Projectp. 304
What We Didn't Talk Aboutp. 327
Summaryp. 329
Resourcesp. 329
Mason (HTML::Mason)p. 331
Introductionp. 331
Installationp. 333
Apache Configurationp. 334
A Quick Examplep. 335
Inline Perl Sectionsp. 336
Handling Posted Data with %ARGS and [left angle bracket]%args[right angle bracket]p. 343
Mason Componentsp. 348
Mason Projectp. 357
What We Didn't Talk Aboutp. 372
Summaryp. 375
Resourcesp. 375
PHPp. 377
Introductionp. 377
Embedding PHP into HTMLp. 378
Configurationp. 379
A Couple of Quick Examplesp. 379
Language Syntaxp. 381
Built-In PHP Functionsp. 405
PHP and MySQLp. 411
Projectp. 420
Summaryp. 431
Resourcesp. 431
Bibliographyp. 433
Indexp. 437
Table of Contents provided by Syndetics. All Rights Reserved.

Supplemental Materials

What is included with this book?

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.

Excerpts

Is This Book for You?This book's target audience is the person who wants to get an interactive database-based web site up and running without spending a whole bunch of money on a large stack of books and software. That person might be a technically competent Linux user who is not necessarily a Perl or a CGI whiz; a graphic designer, with a technical bent, who wants to build a web site without becoming a certified computer whiz; or an MCSE who has heard rumors that there might be another way to do things.Up to now, these folks would have had to purchase four or five thick books and wade through them, picking out the knowledge needed to accomplish necessary tasks. It's likely they would accomplish this in a less than optimal way, picking up some things and missing others, revamping and redoing as they learn new things without being aware of the security considerations necessary to keep their site and computer safe. The goal of this book is to summarize much of the information about Open Source in one place and to do so in a manner that will get the prospective web developer up and running safely and efficiently, including pointers to other resources when it becomes necessary to have more knowledge than is provided here.Our target audience, ideally, would have some familiarity with Unix, some sort of modern programming language (C, FORTRAN, Perl, Pascal, C++, Javamost anything will do), and HTML. The scope here, and the sheer constraints on its size, force us to limit explanations and assume some background knowledge; we touch on a lot of things, enough so that you ought to be able to ask the right questions on a search engine. If you don't have any Unix experience, or if you are not a seasoned programmer, this book can still be useful, with motivation and, perhaps, the purchase of a few other computer books. What It Will DoIn this book, we introduce you to the pillars of LAMPLinux, Apache, MySQL, and Perl and PHP, with mod perl, Embperl, Mason, and WML tossed in for good measure. We are biting off a lot with this book, and this is what we intended to do. We want to cover as much ground as possible and present you with various approaches for programming a web site with Open Source products. The goal is to point out the part of each of these Open Source approaches that provides the most functionality.Another goal is to make you aware of current techniques and standards: What is easily possible, what might be possible with more work, which tool is appropriate for which task. Just as important is how to discern the things you need from those you don't, or don't need just yet. Not least of all is how to do these things in as secure a fashion as possible. After all, you are opening up your box to the world with these techniques and should be wary of those with impure motives.Based on experience, we believe that 80 percent of the utility of any complicated tool is the result of knowing 20 percent of the uses of that tool, whether that tool be software, hardware, mechanical, or electronic. Swiss Army knives are excellent and versatile tools, but most of the time, you just use the blade or the screwdriver.The purpose of this book is to introduce you to that 20 percentthe blade and the screwdriverthat opens up the most functionality, and to make you aware of the remaining 80 percent so that you can use the other tools when appropriate.And to teach you to not use the blade as a screwdriver. Four PartsThe book is divided into four parts:Part I, Structural: Linux, Apache, MySQL, Perlthe structural system foundations on which LAMP is built and the other programs run. Linux is the operating system this is all based on. We touch only lightly on Linux because it's a big subject and one that doesn't need to be dealt with much after it's installed. Apache is the web server software th

Rewards Program