Synopses & Reviews
Open Source technologies are providing contemporary developers with a range of cost-effective and robust alternatives to commercial software for building dynamic, data-driven Web applications. This practical guide presents a comprehensive survey of LAMP (Linux, Apache, MySQL, Perl, and PHP), and it shows how these solutions can be implemented efficiently and securely while improving reliability and dramatically cutting costs.
Open Source Web Development with LAMP focuses on the most important core material necessary so that developers can "hit the ground running" and begin building applications right away. This book presents a balanced overview of LAMP technologies and allows the reader to decide which tool may be appropriate for the particular task at hand. After a general overview of Open Source technologies, the book presents an overview of the Web before moving on to cover structural, static, dynamic, and embedded technologies. The coverage here provides a description of the strengths and weaknesses of each Open Source technology and also acts as a reference guide for each application.
Topics covered include:
A comprehensive survey of Open Source technologies Static and dynamic data and embedded HTML on the Web Linux and Unix distributions, installations, and commands Apache Web Server, Perl, and MySQL Web site META language (WML) Common gateway interface (CGI) and mod_perl Server Side Includes (SSI), Embperl, and Mason PHP syntax and functions In addition to the discussions in the book, a companion Web site--www.opensourcewebbook.com--contains supplemental information, including tools, source code, helpful links to additional resources, and errata as needed.
Complete in coverage and practical in presentation, Open Source Web Development with LAMP spotlights the tools and technologies today's developers need to create workable, dynamic, and secure Web sites using Open Source technologies.
020177061XB11072002
Synopsis
Open source technologies are providing developers with a range of more cost-effective, robust alternatives to commercial software for building dynamic, data-driven, secure Web applications. This 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. The book focuses on the most important core material necessary for the developer to hit the ground running and begin building applications right away, and shows the reader where to go to find comprehensive information on all the topics covered. The book introduces the pillars of open source development, and reviews the current techniques and standards for each. It shows what it is easily possible to do using them, what might be possible with more work, and how to decide which tool is appropriate for what task. In addition to the technologies in the subtitle the book also covers Embperl, mod_perl, Mason, and WML. The authors provide many examples, all of which are active on the companion Web site. Finally, the authors include extensive coverage of the security issues involved.
Synopsis
Includes bibliographical references (p. 433-435) and index.
About the Author
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
Foreword.
Preface.
Acknowledgments.
About the Authors.
Introduction.
The Best of All Possible Worlds.
Open Source Software.
Summary.
Resources.
Introduction.
The best of all possible worlds.
Is this book for you.
Open Source Software.
It's not just for Linux.
Summary.
2. The Web Explained.
How It Works.
What We Don't Talk About.
Security.
I. STRUCTURAL. 3. Linux-the Choice of a GNU Generation.
Introduction.
Basic Unix. 4. Apache Web Server.
Introduction and Description.
Starting, Stopping, and Restarting Apache.
Configuration.
Securing Apache.
Create the Website.
Apache Log Files.
Summary. 5. Perl.
Introduction.
Perl Documentation.
Perl Syntax Rules.
A Quick Intro to Object Oriented Programming.
What We Didn't Talk About.
Summary.
Resources. 6. MySQL.
Introduction.
MySQL Tutorial.
DBI.
Table Joins.
Loading and Dumping a Database.
Summary.
Resources.
II. STATIC. 7. WML - Website META Language.
Introduction.
Installation.
The Basics.
Creating a Template.
Other Helpful Includes.
Diversion.
A Better Template.
Configuring WML with .wmlrc.
Macros - Creating Custom Tags.
Programming Code - Eperl.
Project.
Summary.
Resources.
III. DYNAMIC. 8. CGI - The Common Gateway Interface.
Introduction.
CGI Introduction.
Apache Configuration.
A First CGI Program.
What Can Go Wrong?
CGI.pm Introduced.
CGI.pm HTML Shortcuts.
Information Received by the CGI Program.
Form Widget Methods.
CGI Security Considerations.
A Note About die().
Project - CGI/MySQL/DBI.
Summary.
Resources.
Books.
Web Sites. 9. Mod_perl.
Introduction.
Configuration.
Turning CGIs into mod_perl Programs.
Pure mod_perl Programming.
Project: MySQL, DBI and mod_perl.
Other Stuff You Can Do.
Summary.
Resources.
IV. EMBEDDED. 10. SSI - Server Side Includes.
Introduction.
SSI Introduction.
SSI Security Considerations.
Summary.
Resources.
Web Sites. 11. Embperl (HTML::Embperl).
Introduction.
Installing Embperl.
Apache Configuration.
A Quick Example.
Embperl Commands.
Posted Data and %fdat.
Other Embperl Variables.
Embperl Project.
What We Didn't Talk About.
Summary.
Resources. 12. Mason (HTML::Mason).
Introduction.
Installation.
Apache Configuration.
Quick Example.
In-line Perl Sections.
Handling Posted Data with %ARGS and (%args).
Mason Components.
Mason Project.
What We Didn't Talk About.
Summary.
Resources. 13. PHP.
Introduction.
Embedding PHP into HTML.
Configuration.
A Couple of Quick Examples.
Language Syntax.
Built-in PHP Functions.
PHP and MySQL.
Project.
Summary.
Resources. Appendix A Source Code.
Perl.
MySQL.
WML.
CGI.
Mod_perl.
SSI.
HTML::Embperl.
HTML::Mason.
PHP. Bibliography.
Index. 020177061XT05052003