E-Book, Englisch, 376 Seiten
Suehring Beginning Perl Web Development
1. ed
ISBN: 978-1-4302-0089-5
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
From Novice to Professional
E-Book, Englisch, 376 Seiten
ISBN: 978-1-4302-0089-5
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
* Avoids proof-of-concept examples in favor of teaching readers how to produce well-coded secure CGI applications that will stand up to the demands of being placed into the potentially hostile environment of the Internet. * Takes a holistic approach to web application development and includes instruction on how to use ancillary programs such as Mason and Nagios that the reader will need to be familiar with in order to progress. * The book's comprehensive scope tackles all the areas of Perl web application development the reader is likely to need in creating their first web applications.
Steve Suehring is the security editor for LinuxWorld Magazine. He has written articles for Linux Magazine and authored a book titled MySQL. Suehring has also edited a number of titles on Linux and open source software. He has been working with closed and open source software for a number of years.
Autoren/Hrsg.
Weitere Infos & Material
1;Contents at a Glance;4
2;Contents;6
3;About the Author;14
4;About the Technical Reviewer;16
5;Acknowledgments;18
6;Introduction;20
7;PART 1 CGI Development with Perl;22
7.1;CHAPTER 1 The CGI Module;24
7.1.1;An Overview of CGI;24
7.1.2;What You Need for This Chapter;25
7.1.3;Hello World, CGI Style;26
7.1.4;A Closer Look at the CGI.pm Functions;32
7.1.5;Environment Variables;44
7.1.6;Interaction with the System;47
7.1.7;Debugging and Troubleshooting;48
7.1.8;Security Considerations with CGI Programs;52
7.1.9;Summary;55
7.2;CHAPTER 2 Popular CGI Modules;56
7.2.1;Integration with Other Modules;56
7.2.2;Interaction Based on Environment Variables;66
7.2.3;Security Considerations with CGI Modules;68
7.2.4;Summary;68
7.3;CHAPTER 3 Databases and Perl;70
7.3.1;Interacting with a Database;70
7.3.2;Using SQL Databases with the DBI;76
7.3.3;Interacting with the Web;86
7.3.4;Troubleshooting Database Interaction;91
7.3.5;Security Considerations with Data Access;91
7.3.6;Summary;92
7.4;CHAPTER 4 System Interaction;94
7.4.1;Perl Scripts and the Operating System;94
7.4.2;Working with Filehandles;94
7.4.3;Uploading Files with CGI.pm;98
7.4.4;Working with System Processes;104
7.4.5;Security Considerations with System Interaction;106
7.4.6;Summary;107
8;PART 2 Internet Interaction with LWP and Net::Tools;108
8.1;CHAPTER 5 LWP Modules;110
8.1.1;Getting Started with the LWP;110
8.1.2;HTTP from 29,999 Feet;111
8.1.3;Keeping It Simple with LWP::Simple;113
8.1.4;Getting More Functionality with LWP::UserAgent;117
8.1.5;Using the LWP;118
8.1.6;Removing HTML Tags from a Page;124
8.1.7;Security Considerations with the LWP;125
8.1.8;Summary;126
8.2;CHAPTER 6 Net:: Tools;128
8.2.1;Checking E-Mail with Net::POP3;128
8.2.2;Checking E-Mail with Mail::Box;138
8.2.3;Sending E-Mail with SMTP;139
8.2.4;Checking DNS with Net::DNS;146
8.2.5;Sending a Ping with Net::Ping;149
8.2.6;Security Considerations with Net:: Modules;154
8.2.7;Summary;154
9;PART 3 XML and RSS;156
9.1;CHAPTER 7 SOAP-Based Web Services;158
9.1.1;A Quick SOAP Primer;158
9.1.2;SOAP Meets Perl: SOAP::Lite;160
9.1.3;Creating a SOAP Listener;167
9.1.4;Consuming a SOAP Web Service;169
9.1.5;Security Considerations with SOAP Web Services;173
9.1.6;Summary;173
9.2;CHAPTER 8 Perl and RSS;174
9.2.1;RSS: Versioning Fun;174
9.2.2;Reading RSS with XML::RSS;175
9.2.3;Writing RSS with XML::RSS;180
9.2.4;Security Considerations with RSS;183
9.2.5;Summary;184
9.3;CHAPTER 9 XML Parsing with Perl;186
9.3.1;XML Parsing Methods;186
9.3.2;XML Parsing Considerations;187
9.3.3;Parsing XML with XML::Simple;187
9.3.4;Parsing XML with XML::SAX;193
9.3.5;Using Tree-Based Parsing;200
9.3.6;Security Considerations with XML Parsing;201
9.3.7;Summary;201
10;PART 4 Performance Enhancement with mod_perl;202
10.1;CHAPTER 10 Apache and mod_perl;204
10.1.1;How Apache Handles Requests;204
10.1.2;mod_cgi vs. mod_perl;208
10.1.3;Apache::Registry vs. Apache::PerlRun;210
10.1.4;mod_perl Installation;214
10.1.5;From mod_cgi to mod_perl;220
10.1.6;Security Considerations with mod_perl;221
10.1.7;Summary;221
10.2;CHAPTER 11 Development with mod_perl;222
10.2.1;Thinking in mod_perl;222
10.2.2;Preloading Perl Modules;228
10.2.3;Working with the Apache Request Object;230
10.2.4;Working with the Apache Server;247
10.2.5;Security Considerations with mod_perl, Revisited;250
10.2.6;Summary;251
11;PART 5 Creating Web Templates;252
11.1;CHAPTER 12 The Template Toolkit;254
11.1.1;Perl and Templates;254
11.1.2;Template Toolkit Introduction;255
11.1.3;Template Toolkit Syntax;261
11.1.4;Building a Web Site with Template::Toolkit;278
11.1.5;Security Considerations;283
11.1.6;Summary;283
11.2;CHAPTER 13 Perl Web Sites with Mason;284
11.2.1;Introducing Mason;284
11.2.2;Installing Mason;286
11.2.3;Mason Syntax;290
11.2.4;Building a Web Site with Mason;299
11.2.5;Security Considerations with Mason;302
11.2.6;Summary;302
12;APPENDIX Perl Basics;304
12.1;Our First Perl Program;304
12.2;Types of Data;306
12.3;Operators;314
12.4;Variables;327
12.5;Variable Interpolation;334
12.6;The if Statement;336
12.7;Looping Constructs;347
12.8;The while Loop;347
12.9;Loop Control Constructs;354
12.10;Summary;359
13;Index;360




