 (Larger Image)
|
MySQL and Perl for the Web (Landmark)
by Paul DuBois
Product Group: Book
Publisher: Sams (2001-08-13)
ISBN: 0735710546
EAN: 9780735710542
UPC: 752064710547
Dewey Decimal #: 005.7585
Paperback: 552 pages
SKU: 111808000330
Condition: New
Comments: 0735710546 New, never read, may have minor wear on cover.
|
Editorial Reviews
|
Product Description
MySQL and Perl for the Web provides a much-needed handbook for database and Web developers seeking an extensive and detailed guide for using the combination of MySQL and Perl to build dynamic and interactive database-backed Web sites. It shows how to use Perl's DBI database access module, pairing it with with the CGI.pm module that allows Web pages and forms to be generated and processed easily. These tools provide developers with a solid foundation for creating applications that incorporate database content to create dynamic, up-to-date Web sites. The book employs a practical learn-by-doing approach that demonstrates development techniques by building complete applications, not just fragmentary pieces. It shows what to do at each step of the way during the process of building live, working examples. Applications are fully explained so you can understand how they work and apply the techniques they illustrate to your own projects.
|
Amazon.com Review
Once in a while a book comes along that covers an area of development that has previously been largely ignored. Both MySQL and Perl are well documented in several tutorials, but in-depth coverage of Web development using the combination of the two is rare. MySQL and Perl for the Web zeroes in on this interesting pairing, illustrating practical application development possibilities using this popular duo. The book is perfect for developers of Web sites running on Apache on Unix. Loyalties vary in terms of operating systems, Web servers, and scripting languages, but those who find their home in the Unix and Perl environments will find this book right up their alleys. The target audience is developers somewhat familiar with Perl and the Unix-based Web server environment, but you'll find the book illustrative even if your knowledge is sketchy. After showing how to make database connections using Perl and MySQL, author Paul DuBois dives into some useful real-world examples to help you build your skills. He shows how to implement a simple to-do list application, an online product registration site, contests, online polls, image databases, an online greeting card service, and more. There is also excellent coverage of search facilities and session management. The sample code for the applications in this text is presented in small pieces in context with the discussion; most of the space is devoted to explanations of the issues and implementation. All of the code is available, however, from the book's companion Web site. This tutorial is an excellent way for Perl developers to move to the next level of development and make the most of some powerful, free tools. --Stephen W. Plain
|
Customer Reviews
|
A great book to get you up to speed
Rating (5)
Date: 2005-04-24
4 out of 4 customers found this reveiw helpful
Disclaimer: I was given a copy of this book on the condition that I would write a review of it. That said, what follows is my opinion.
This book provides a good "from the ground up" guide for using Perl to do just about anything you'd want to do on your web site, including run an eCommerce site. You need to know a bit of Perl before you start, but even if you don't the examples start out simple enough that you should be able to pick it up as you go, provided you have some programming background. Should you get stuck, there are plenty of pointers to online resources, as well as an appendix to show you how to set up the software used in this book.
The book starts out with the basics: setting up MySQL and Apache to get at your data via the web, including Perl DBI basics. You then get started by writing a simple to-do list application, and in the process create modules that you will use (and build on) later in the book.
Mod_perl is covered, and then progressively more complex form based applications are presented. Many useful techniques are discussed. Once you're just about tired of all the tedium of form based applications, automated form-handling techniques are introduced that use meta-data about the table structures to automatically generate (and validate) input data. Techniques for session management get a chapter as well, presenting very good information on the pros and cons of different session management techniques (IP, cookie, URL key, etc).
Security and privacy get a very good chapter. Not only are issues presented regarding keeping user's information confidential, but cautions are also presented regarding keeping the server secure. SQL injection attacks are discussed, as are defenses against them. Hint: use MySQL's quote() function.
The book closes with a chapter on writing an eCommerce application. All the techniques used in the book are brought together in one application, and it is shown (very well) how they all relate to each other. While the resulting eCommerce application is extremely simple in regards to what it can do, it effectively shows the reader the power of MySQL and Perl together, and provides an excellent reference when writing applications of one's own.
I am a system administrator, and have done a good chunk of web site design (mostly the technical side) and programming. I've been using Perl since 1996, and MySQL with that since 2000 (used mSQL before that). So, yes, I had quite a bit of Perl and DB experience before I read the book. I say that to say this: I still learned things. There were tips and techniques in there that I hadn't thought of, and will make my job just a bit easier the next time I use Perl to write a MySQL based application. Even if you have some Perl and MySQL experience under your belt, the book will still be useful.
|
|
An excellent book on both MySQL and Perl.
Rating (5)
Date: 2004-09-14
4 out of 4 customers found this reveiw helpful
There are plenty of books about MySQL and PHP in bookstores. Yet, I still prefer Perl as my web page languages, thanks to its powerful regex and the similarity to C grammar (Some functions have exactly the same name and take the same arguments as in C).
For web applications, a backend database is necessary (MySQL). But how to access and operate on these dabatases? Perl comes into scene at this point.
I don't understand why people write so many books on PHP and MySQL, and so few on Perl and MySQL. Up to now, Paul's book is the only one I ever saw to cover both MySQL and Perl's application in web pages.
Paul's method is step by step, and the examples are not trivial ones. And he clearly explained the critical parts of his code. He even wrote some packages which can be used as library.
Before reading his book, I feel curious how the dynamic web pages work. Now, after finishing his book, I can understand how a commercial site such as Amazon works.
Finally, I recommend this book be bought with the other title by Paul - "MySQL". This is the book dedicated to MySQL language. It is a good companion to "MySQL and Perl for the Web".
|
|
This is the most important book in my library (of over 300)
Rating (5)
Date: 2004-01-30
3 out of 3 customers found this reveiw helpful
Like many others, I wish I'd seen this book long ago.The attention to detail and accuracy of the examples is just incredible! This is by far the most used reference book in my library. After repeatedly having to tape the book together, I finally gave it away and bought a new one. Following his examples eliminates many potential pitfalls that would otherwise result in hours of troubleshooting. I can't imagine how I would have ever learned this information without the expert advice of the author, Paul DuBois. His coverage of CGI.pm is essential as well as his list of other books to read. I think I have all his other books as well. He even returned email almost immediately! My only complaint is that it isn't bound in leather!
|
|
Clear explanations and excellent examples
Rating (5)
Date: 2003-11-03
1 out of 1 customers found this reveiw helpful
This is an excellent book. I knew my way around Perl and had done a few relatively simple CGIs before being handed a project to build an application that would allow 50 or 60 employees to enter several thousand customer complaints and email them to the right recipents based on the complaint content. I had a three-week deadline.I bought the book and started patching elements of the example applications together until I what I needed almost working. One problem delayed me a couple of days so I emailed DuBois with a question and received a solution within the hour. I'd recommend this book to anyone who has a moderate grasp of Perl and Apache. It's one of the most lucid computer books I've ever read.
|
|
MySQL and Perl but no templates?
Rating (3)
Date: 2003-08-20
This isn't a complete review but readers should be aware that this book does NOT cover templates (it doesn't appear in the contents or the index). There's no mention of Template Toolkit or HTML::Template, for example. (Text::Template and HTML::Mason get mentioned as an aside, but that's it) Similarly, there are three chapters on forms, but no mention of CGI::FormBuilder.Seems like a big omission to me. YMMV.
|
|
|