Slashdot Mirror


Open Source Web Development With LAMP

Alan Eibner submitted this review of Addison-Wesley's Open Source Web Development With LAMP. He writes "The number of books about Web development technologies is astounding. Some claim you can learn everything you need to know in 24 hours. Others require several complementary volumes in order to learn the subject. Why another web development book? And what sets this one apart from the rest?" Read on for the rest of Alan's chapter-by-chapter review. Update: 04/11 18:22 GMT by T : I'd called this an O'Reilly book rather than Addison-Wesley; sorry, now fixed. Open Source Web Development with LAMP author James Lee, Brent Ware pages 496 publisher Addison-Wesley rating 10 reviewer Alan Eibner ISBN 020177061X summary All the Open Source web technologies in one easy to read place.

Open Source Web Development with LAMP (henceforth OSWB) has a difficult goal: to teach you enough about all the LAMP (Linux, Apache, MySQL, Perl/Mod_Perl/PHP) technologies that you can start developing static and dynamic websites right away. How on earth can they cover so much in one ~500 page book, you ask?

The Theory The authors do not intend to teach every little bit about the web technologies they cover. No book binding is that strong, but the reason is more subtle than that. When you try to cover everything, you lose perspective about the pros and cons of the technologies.

Instead, the authors try to teach you enough about the technologies to hit the road running, and provide you pointers to websites, man pages, and other books where you can learn the pieces they don't cover. I think the authors' words themselves describe it best -- quoting from the Introduction:

"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 percent -- the blade and the screwdriver -- that opens up the most functionality, and to make you aware of the remaining 80 percent so you can use the other tools when most appropriate."

This is the goal of the book -- a goal that I believe they fulfilled superbly.

The Authors James Lee is the lead author of OSWB. He's a Perl and Open Source trainer, programmer, hacker and who-knows-what-else at Onsight, Inc.. He's also co-author of Hacking Linux Exposed first and second editions. (./ review of HLE 2nd edition)

Brent Ware, co-author of OSWB, has a PhD in Physics, has done the Dot Com thing, failed to get independently wealthy, and now gets paid to play with lasers, but would rather be climbing mountains. He was also a contributing author to Hacking Linux Exposed.

(Descriptions are based on their Bios, intuition, and unsubstantiated rumors.)

The Book

  • Part I: Structural

    • Chapter 1: The Web Explained
    • Chapter 2: Linux - the Choice of a GNU generation

      These two chapters are mainly here for folks new to Web development in a Linux/Non-Microsoft environment. They do a superb job of explaining why LAMP is a good solution for both technology and monetary reasons. A great read, especially for your manager who keeps asking why you shouldn't use some proprietary development tools. It also shows you what HTTP actually looks like, and the difference between static HTML, dynamic websites, and embedded web programming languages.

    • Chapter 3: Apache Webserver

      Next they provide information about configuring Apache, creating password-restricted access, and other security considerations. At about 20 pages, this is fast and concise, but contains all you really need to know when setting up your Apache server.

    • Chapter 4: Perl

      Following the 20/80 rule, the authors manage to teach you the Perl you'll need to know in order to generate web content. They don't go into things like creating network sockets, shared memory, or the Foo::Bar::Never::Necessary module. What you do get is all the I/O, flow control, datatypes, regexps, system access, scoping, best practices (use strict, etc), and enough OO to use modules that require it. (Database access via DBI is covered later, don't worry.)

    • Chapter 5: MySQL

      Here they teach you to install MySQL databases, tables, and enough SQL to do what you need to do. The examples are excellent and frequently amusing. This is also where the book starts to really begin its integration of multiple technologies. We'll be referring back here later when we start programming web front-ends to MySQL databases.

  • Part II: Static

    • Chapter 6: WML

      For those that don't know, WML is the Website Meta Language. WML allows you to create static HTML files using a very powerful suite of pre-processing, macros, eperl, and HTML shortcuts. By creating site templates, WML can manage all your links and layout, leaving you to concentrate on the content of each page. OSWB is the only book I know of that discusses WML.

  • Part III: Dynamic

    • Chapter 7: CGI

      First, the authors discuss how dynamic HTTP actually works -- GET/POST requests, variable passing, types of fields, and security implications. This will be important for all the remaining chapters of the book. The chapter then continues with a focus on perl and CGI.pm for CGI development, including a fully functional CGI/MySQL/DBI project.

    • Chapter 8: mod_perl

      For those who want to get more performance out of dynamic perl-created content, mod_perl is the answer. The authors explain the ways you can create mod_perl code, the differences between this and the CGI.pm environment, and then continue with a mod_perl MySQL/DBI project. This chapter is worth the cost of the book alone.

  • Part IV: Embedded Languages

    • Chapter 9: Server Side Includes

      I think most people agree that SSI is pretty much dead, when compared to the more functional languages we have nowadays. The authors give a very complete synopsis in about 10 pages.

    • Chapter 10: Embperl
    • Chapter 11: Mason
    • Chapter 11: PHP

      If you want to use an embedded language (where the code is inside the HTML files themselves) then you're much more likely to use one of these three languages. I'd never heard of Embperl or Mason before, but they seem to be an excellent middle ground between CGI and mod_perl. They both are explained extremely well. Since they are based on Perl, much of the background was already covered in Chapter 4, so the authors concentrate on the important features, rather than the language constructs.

      PHP is, of course, completely different than Perl, and thus Chapter 11 needs to teach everything from the constructs and datatypes up to database integration. Yet somehow it manages to do so with ease. It also concludes with a database-driven project ripe for you to modify for your own needs.

Short notes

Some short comments that didn't seem to fit anywhere else in this review:

  • Distro: OSWB does assume a Red Hat installation for its example configurations, but does a good job of remaining distro-agnostic aside from pathnames, and letting you know the differences you're likely to face.

  • Humor: Lee and Ware are funny - reading this book is really enjoyable because they are constantly weaving humor into it.

  • Security: Security is discussed whenever appropriate in the book, which is not a surprise, given the authors' association with Hacking Linux Exposed.

  • Omissions: The "What We Didn't Talk About" section is excellent. Most books deny what they haven't covered. OSWB tells you exactly what they haven't taught you, and point you to the places you can get more information if you need it.

  • Projects: The book has many projects that let you learn and experiment with the languages directly. Each one could serve as a branching-off point for your own website's needs.

  • Integration: Since OSWB covers all the technologies, you don't have constant overlap or redundancies; that lets it stay lean and tight. For example WML allows you to include perl code, but since you already learned perl in Chapter 4 the authors don't need to start from the ground up. However, they do keep introducing us to new and neat features in all their subsequent code examples.

The Website

The OSWB website at OpenSourceWebBook.com is written in the languages they discuss, and all the original source code used to build the website and the rest of the code in the book is available for download. Snippets of the code for the website is shown as examples with commentary in the book, letting you really see how everything fits together. These guys fall squarely into the practice-what-you-preach category.

The Verdict By not trying to teach every nuance and advanced feature of each of these languages and technologies fully, you actually have a much better book. At the end you have an excellent understanding of what tools are out there, and can best choose the ones you should use for a given purpose. I came away from this book and immediately used a combination of WML templates + mod_perl + MySQL to create a very robust dynamic web application using only the info in the book and a few choice man pages.

I'd recommend this book both to nitty-gritty web developers, and also to non-techies who want to be able to understand the technologies that are out there, to help create informed decisions when starting any web development project.

You can purchase Open Source Web Development With LAMP from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

104 comments

  1. Please help me!! by borgdows · · Score: 0, Offtopic

    I can't read this book! My lamp is broken!

  2. Donation to the EFF for this one too? by ftlstl · · Score: 5, Informative
    I remember reading that any sales of Hacking Linux Exposed are donating online procedes to the Electronic Frontier Foundation. (See their Books Purchasing Page. They list a lot of other great books too.)

    Is this the case for Open Source Web Development with LAMP? Since James Lee is an author on both, I'd think that'd be the case, but I don't see anything meantioned on the OSWB Book Purchasing Page.

  3. Great Book by Squid+Monkey · · Score: 5, Interesting
    I was applying for a web development position. I'd had CGI under my belt for ages (I still have a copy of the original NCSA web server running on one of my machines for grins) but never really got into the other languages and way of writing dynamic code. When I lost my job as a sys admin, I wasn't able to find any "honest" work in that field, so I thought I might need to fall back on my historic web development skills.

    In the store one day I was looking for a good book to get me up to speed on all the languages I'd been thumbing my nose at all this time. I came across OSWD w/LAMP, and flipping through it could tell it was just what I needed. When I noticed that it was by one of the guys who wrote Hacking Linux Exposed I knew that not only would it be useful in helping me do dynamic websites, but it would contain the security pointers I'd need to be able to do so in a secure manner.

    Ironically, the day I bought it, a company scheduled an interview for me for a web development position the following day. So I read the entire book, cover to cover, in one night without the chance to actually try out the code. Nonetheless, I learned so much just from reading it without even typing a line of code that I totally smoked the interview. The interview was very technical, asking differences between the languages and pros/cons, as well as having me write code off the top of my head to do things in the different languages.

    I can't recommend this book enough.

    1. Re:Great Book by Anonymous Coward · · Score: 0
      Downsizing, dude. 80% of us were dropped.

      And you know nothing about me or the situation - who's the zealot here?

    2. Re:Great Book by Anonymous Coward · · Score: 0

      >>I totally smoked the interview. The interview was very technical

      Gimme a break. This is total BS. Either the interview wasn't at technical as you think or you didn't do as great a job as you think you did.

      One night to learn all this? What are you still in college and think work is like cramming for a mid-term?

    3. Re:Great Book by Anonymous Coward · · Score: 0

      You.

    4. Re:Great Book by Anonymous Coward · · Score: 0

      So in only one evening, you were able to come up to speed on Perl, PHP, Apache, and MySQL in additional to the conceptual framework behind the design of dynamic, data driven web sites?

      This sounds quite unlikely. Why don't you tell us the real story?

    5. Re:Great Book by Anonymous Coward · · Score: 0

      "I was applying for a web development position. I'd had CGI under my belt for ages (I still have a copy of the original NCSA web server running on one of my machines for grins) but never really got into the other languages and way of writing dynamic code."

      Dude! It's 2003... This book just came out a few months ago.

      CGI has been an outmoded way of developing dynamic web content for at least 5 years now. Here's a hint: If you want to maintain your job, keep up to date on technology.

    6. Re:Great Book by Squid+Monkey · · Score: 2, Informative
      I already knew a boatload of perl - I used it all the time as a sysadmin. It was what I wrote CGIs in, using CGI.pm. I already knew Apache, I was maintaining it on the machines at my office. PHP I had to learn from scratch, while mason, embperl already had a perl touch to them, so those were able to be learned quickly. What was really helpful though was having everything in one small space so I wasn't running around to a billion websites trying to figure out the pros and cons of them manually. I didn't have time to do everythin from scratch, it was just all presented right there for you.

      As to the disbelief that I did well on the interview, I'm still happily and gainfully employed with a very large e-commerce firm developing for their main page, not some backwater thing. My years as a sysadmin were very helpful in getting the position, actualy.

      I've got a copy of this LAMP book, as well as three other books they suggested, here on my desk. When I have a problem, I usually turn to the LAMP book first, and sometimes to the more detailed language specific ones when there's a piece that isn't covered in the LAMP book because it's too detailed.

    7. Re:Great Book by JamesOfTheDesert · · Score: 1
      I'd had CGI under my belt for ages ... but never really got into the other languages and way of writing dynamic code.

      So I read the entire book, cover to cover, in one night without the chance to actually try out the code. Nonetheless, I learned so much just from reading it without even typing a line of code that I totally smoked the interview. The interview was very technical, asking differences between the languages and pros/cons, as well as having me write code off the top of my head to do things in the different languages.

      It's scary to think that somebody could get a web developer job without ever having actually written any relevant code.

      When asked to write code in different languages, did you crib what code you recalled from the book?

      --

      Java is the blue pill
      Choose the red pill
  4. Re:MySQL Free? by Zwets · · Score: 1

    It's kind of complicated, so bear with me.. Type "www.google.com" in your address bar, type "MySQL download" in the Search box and click "I'm Feeling Lucky". If you get stuck somewhere along the way just post again.

    --
    One of the lessons of history is that nothing is often a good thing to do and always a clever thing to say. - Will Duran
  5. LAMP? I used it on my FreeBSD box by andy+braaten · · Score: 5, Insightful
    Linux, linux, linux, oh how I hate that buzzword.

    Not counting the installation instructions, this book applies to any Unix machine. The authors did cover configuration in just the right amount of depth, which applies everywhere, but were brief about the installation, which is actually a good thing. I got this book for new web developers at our company. We have about 50 FreeBSD servers in our server farm that do all the web stuff, and other than the install notes in this book, every byte was applicable to us as well.

    My only objection? Having a title that implies that only Linux can do this.

  6. Excellent Review by TheFlyingGoat · · Score: 3, Interesting

    This is one of the better book reviews I've read on Slashdot. Kudos to Alan Eibner for putting together a clear, concise, and complete article. Note to future book reviewers: don't list the chapters and a summary of the book... try breaking down each chapter, and then the book as a whole. It seems to come out much better. :)

    --
    You have enemies? Good. That means you've stood up for something, sometime in your life. --Winston Churchill
    1. Re:Excellent Review by Anonymous Coward · · Score: 0

      I agree. Too many of the book reviews lately seem to be a cut and paste of the back of the book with no actual review and opinion.

  7. More fun with acronyms by burgburgburg · · Score: 4, Funny

    LAMP (Linux, Apache, Mod_Perl, PHP)
    SOFA (Suite of Free Applications)
    LEATHER (Linux Expressions Applications That Have Extensible Results)
    CHAIR (Combined HURD Apache Interface Regexp)

    1. Re:More fun with acronyms by SoftCoreHonesty · · Score: 2, Funny

      You forgot my favorite: Free Utilities for Creating Karma

    2. Re:More fun with acronyms by BitHive · · Score: 1
      And let's not forget what us elitist bastards use:

      FAPP (FreeBSD, Apache, PostgreSQL, Perl)

    3. Re:More fun with acronyms by KevinDumpsCore · · Score: 1

      ALPO (Apache, Linux, Perl/PHP, Oracle)

    4. Re:More fun with acronyms by Anonymous Coward · · Score: 0

      You forgot:
      SARS (Sun, Appple, Rational, Suck).

    5. Re:More fun with acronyms by Anonymous Coward · · Score: 0

      Let me change that:
      SARS (Sun, Apple, Ruby, Suck).

  8. Required reading for any web designer by Brian+Hatch · · Score: 4, Informative
    I was one of the tech reviewers of OSWB. James and Brent wrote the thing in LaTeX, the lucky bastards, so I was able to see the whole thing as it unfolded, updated nightly via CVS over SSH. Now you might call me biased -- James and I have worked together for almost a decade now, and he's the one who badgered me into learning Perl way back when. And he's got a great pull out couch that my daugter and I sleep on when we go back to Evanston for Northwestern Homecoming every year. I got a free signed copy, but that's the only way I benefit -- OSWB sales don't affect my pocketbook in any way.

    So, with those disclaimers out of the way, here is my review of OSWB.

    Open Source Development with LAMP is the perfect book to learn a wide variety of server technologies that will have you writing useful, clean, fast, and productive websites before you finish reading it.

    I was one of the technical editors of this book, and was able to watch it evolve as they wrote. The authors have made a huge effort to make the book appropriate for multiple Linux distributions, and they have achieved the highest degree of technical accuracy.

    OSWB covers many different technologies, some complementary, some discreet. By showing you many of the possible tools, this book lets you decide which is best for the job at hand.

    The theory behind OSWB is that knowledge of 20% of a tool's capabilities will let you accomplish 80% of the tasks you face. OSWB does a superb job of giving the user a sizable introduction to webserver technologies that will be sufficient for most rojects, and tells you where you can get information for advanced needs. They have written their entire website with the exact same tools they teach you in the book, and they offer the entire source of their website for download for your investigation and reference, as well as all the samples and projects in the book itself.

    The gold in this book is not just the descriptions of how the languages work, but how you can use them singly or together to create interactive websites. Their are many sample projects which let you see how everything fits together, and much of the ode can be adapted immediately to your needs. The book is extremely well integrated and organized.

    I have used some of the languages described in this book, while others were completely new to me. I am definitely not a web design person, preferring to write back-end server software. However while reading OSWB, I was charged with creating a MySQL database with a customizable web interface for my alumni organization. Using only this book and a few perldoc commands, I was able to create an interactive mod_perl website in a few days.

    This book offers something to everyone, even advanced web designers. If you are starting out in Web technologies, or are curious about other ways you can get the job done, this is the book for you.

  9. I don't know... by kafka93 · · Score: 5, Insightful
    "goal: to teach you enough about all the LAMP (Linux, Apache, Perl/Mod_Perl/PHP) technologies "
    .. you'd think that if the book was so good it would've left the reviewer with the knowledge that LAMP stands for "Linux Apache MySQL Perl". But there we go.
    1. Re:I don't know... by Alan+Eibner · · Score: 4, Interesting
      Aaaaaaaahhhhhhhhhhh!

      I worked long and hard on this review, and I make a totally stupid mistake like that? Crap.

      Hey timothy - care to fix my review?

      (Words fall on deaf ears...)

      Great, I'm going to look like an idiot in slashdot archives for all time. Yes, of course they cover MySQL - the entire second half of the book has project after project that uses it.

    2. Re:I don't know... by kafka93 · · Score: 1

      (or, er, PHP, or whatever. You know what I meant. But then, of course, I knew what he meant..)

    3. Re:I don't know... by Anonymous Coward · · Score: 0

      I hate to point out that you got the title of the book wrong too (there's no "Web" in it)... This wouldn't be a problem if it didn't make searching for it so much more difficult ;).

      Informative review though, you paint a good picture of the book...

  10. Yes, EFF donations for OSWB as well. by Brian+Hatch · · Score: 4, Informative
    (I'm answering for James because he's out on vacation right now. At least I think he still is, he was yesterday.)

    Yes, the Amazon and B&N links that are on OSWB uses the same HTML as the Hacking Linux Exposed books page (and the Building Linux VPNs books page too, since you're asking.)

    So by all means, go out and buy bunches of copies of Open Source Web Development with LAMP and help the Electronic Frontier Foundation at the same time. Or, if you don't like to buy online, go to your favorite book store and buy it there, and send any money you saved on shipping to the EFF yourself.

  11. What�s to learn? by Anonymous Coward · · Score: 1, Funny

    Some claim you can learn everything you need to know in 24 hours.

    Clap on clap off. How long can that take to learn?

    I do find that LAMP is a benefit when reading dead tree reference material, but backlighting issues sometimes cause the need to disable LAMP, relying only on the ambient from the monitor.

  12. different topic for a book by Anonymous Coward · · Score: 0

    How about a book on using PHP with PostgreSQL? ... I know the perception of MySQL, but I don't understand it. I personally find MySQL to be much more difficult to admin/use. But that's just me. But I would recommend everyone try PostgreSQL ... just once.

    1. Re:different topic for a book by hrarbinger · · Score: 1

      From the review, this book talks about MySQL administration in one chapter, and covers the SQL stuff there as well. For the rest of the chapters they talk about how to interface with MySQL from Perl/PHP/etc. The beauty of the DBI interface in Perl is that you need to load the correct module to connect to a particular brand of database, but thereafter all the code is not database specific. $sth->fetchrow_arrayref() works whether you've got MySQL, PostgreSQL, Oracle, or anything else. So yeah, while you might not get the PostgreSQL administration info here, the rest is still relevant to how you interact with a database. Most Linux users don't do PostgreSQL because it's not an rpm-installable option.

    2. Re:different topic for a book by Anonymous Coward · · Score: 0

      First, there are RPMs of PostgreSQL. See:
      http://rpmfind.net/linux/RPM/engarde/people/ dave/P ostgreSQL/postgresql-7.3.1-1.2.0.i386.html

      Second, RedHat DB is PostgreSQL 7.x. The BSD-style licensing of PostgreSQL is like the Apache Web Server. It allows companies to rebrand it (like "Stronghold" is actually Apache with some modifications). Consequently, people using RedHat DB is using PostgreSQL but the marketshare numbers don't reflect that.

      Third, the reason MySQL is so much more popular is because in the early days MySQL focused on performance while PostgreSQL focused on features (ORDBMS, transactions, etc.) Additionally, many of the early benchmarks exaggerated the performance gap by comparing apples to oranges (like running MySQL with buffered writes and PostgreSQL with unbuffered writes) because they were too lazy or biased to change the default runtime parameters. It would be interesting to see a new set of benchmarks between MySQL 4.x with transactions vs PostgreSQL 7.3.2 using the same settings for buffering (and both compiled with the same gcc optimization settings running on the same OS).

      Another VERY important reason for MySQL being more popular is that running MySQL in Windows was easy while running PostgreSQL in Windows required Cygwin. Never underestimate the power of running easily on an OS with marketshare.

      If you want a fast database with lots of marketshare & 3rd-party utilities, go with MySQL. If you want an ORDBMS (Object-Relational DBMS) with MVCC that you won't be running on Windows, then go with PostgreSQL. And if you want an ANSI SQL-92 RDBMS that runs in both Windows and Unix, check out Firebird (aka Interbase). There are others if you look.

      Ultimately, we are fortunate in having 3+ usable, open-source DBMS to choose from. Try them and decide for yourself which has the balance of features & performance that is right for your particular needs. If you're like me, you might find yourself using all 3 from time-to-time depending on the requirements of the particular project.

  13. Re:Linux + Apache + MySQL + Perl by borgdows · · Score: 0, Flamebait

    repeat after me : WISA is not a WISe Alternative!

  14. Agreed... by RadioheadKid · · Score: 2, Informative

    Like I'm going to trust a review about a LAMP book from someone that doesn't even know what LAMP means. Linux, Apache, MySQL, PHP or Perl or Python.

    --
    "Karma can only be portioned out by the cosmos." -Homer Simpson
    1. Re:Agreed... by Anonymous Coward · · Score: 0

      if i do it in ruby, does that make me a LAMR?

    2. Re:Agreed... by Fizyx · · Score: 1
      ...doesn't even know what LAMP means...

      According to Gurunet, LAMP stands for:

      • Lake Acidification Mitigation Project
      • Lakewide Management Plan
      • Land A Mighty/Meaty Punch [my favorite]
      • Large Advanced Mirror Program
      • Linux, Apache, MySQL, PHP
      • Linux, Apache, MySQL, PHP/Python/Perl
      • Logistics Assessment Methodology Prototype
      • Logistics Automation Master Plan
  15. Re:LAMP? I used it on my FreeBSD box by bwalling · · Score: 0, Flamebait

    LAMP? I used it on my FreeBSD box [...] My only objection? Having a title that implies that only Linux can do this.

    Only about 8 people, including developers, use BSD. Linux has as much broader base of interest, and adding *BSD or Linux/FreeBSD/OpenBSD/NetBSD/BobsBSD to the title of the book may create the illusion of complexity. This books seems more like an intro, which means that you don't want to confuse people. If you use FreeBSD, then you are smart enough to recognize that this book will work for you.

  16. Great read for the powers that be by drgroove · · Score: 2, Insightful

    Looks like it would be a great book to use for the purpose of informing corporate managers how an open-source web architecture would function, and what its advantages are over closed source. It ties together each of the disparate aspects of the necessary open source techonologies in a way that even a manager could understand & appreciate. Would be useful as a tool for convincing management to move from a propretary closed system (ie, Windows, IIS, ASP, MSSQL || Solaris, iPlanet, JSP, Oracle || Windows, CFMX, CFML, xSQL) to LAMP.

  17. Free Alternatives by Vilk · · Score: 5, Interesting

    Even as a professional web developer I cannot help but feel that books like these are, useful as they may be, totally redundant and devourers of perfectly good shelf space. The intricacies of setting up, maintaining, and administering a Linux webserver are numerous enough to warrant their own book and I suspect that one would be better suited buying a text on that particular topic and sticking to online resources for the others.

    The Internet is teeming with websites full of introductory material such as this. I'm almost positive that to establish a respected computing site you are required to have an Apache and/or mod_perl tutorial; these are so unnervingly common that one would think the entire world is stuck in a cycle of endlessly installing Apache. It's a great credit to the creators that it is so easy to install and administrate that the entire process of setting up a production-ready server can be covered in a few poorly-written online tutorials. Why buy a book if your needs can be satisfied by a quick Google search?

    I'll admit that the subjects of Apache and Linux administration may be too complex without a handy book, but PHP and perl? PHP's online manual is absolutely superb. No matter the size of the project or its complexity, if I have a question it will most assuredly be answered by a quick rifle through the documentation. And perl? PerlMonks is all you need. The monastery blows my mind.

    I'll be the first to recommend books on operating system design, theory, and microprocessor internals, and in fact my shelves are lined with them. It is, however, the unfortunate truth that introductory material is everywhere on the Internet but getting any deeper will require a speciality textbook; that is, of course, and not very ironically, unless you're a web developer. For the shallow depths that this book plumbs, I'd recommend saving the money for a guide to webserver administration and taking a visit to http://www.php.net and http://www.perlmonks.org.

    --
    Vilk, from the ranks of the freaks
    1. Re:Free Alternatives by IMarvinTPA · · Score: 1

      Have you considered the possibility that some people prefer reading large sums of new topics in natural light away from the computers.

      Other times, I use real resources to find things because I have a lot of context already going on in the computer and I don't want to futhur complicate what I see.

      I'm highly interested in this book because I've been meaning to get into Linux based web development for a while but had no firm starting point. I get Linux installed, and then it just sits there. At work, I currently work on a IIS VBS ASP website on NT 4 using Oracle 8i (on some UNIX server). My love for Microsoft is not great and would like to eventually move the site off of NT.

      IMarv

    2. Re:Free Alternatives by bware · · Score: 2, Interesting

      We wouldn't disagree with you on most of this. In fact, we spend a fair portion of the intro discussing online resources, and many if not most of our references are to online resources. I'm pretty sure that the two websites you mention are referenced in the book in appropriate places. We even say that Google and Google News are your best friends.

      That said, lots of those online resources are out of date, poorly maintained, contradictory, and even if they weren't, how is a person new to the game supposed to figure out which ones to use and which ones to ignore, and even whether they should be using Perl or mod_perl or Embperl or CGI?

      (I realize that any printed book will be out of date soon also, but at least it will be out of date in consistent ways.)

      The purpose of the book was to put all those things together in one place, be consistent, show the differences and similarities, so that someone new to doing this could make intelligent choices.

      We'd have been just as happy to not have to write Linux and Apache sections either, but those seemed necessary both from completeness, consistency, and security aspects.

      This is probably not a necessary book for you as a professional web designer, but imagine someone just starting. We hope at least that it is useful to that person. And maybe even to you, if you had to take one book to a desert island to set up www.desertisland.com.

    3. Re:Free Alternatives by Vilk · · Score: 2, Interesting

      Online resources truly can be horrendous and antiquated, especially considering that the open source movement chugs along at a good clip compared to commercial products. All things considered, however, PHP.net is still the best and most up to date resource for PHP and PerlMonks.org moves just as quickly and is chock-full of innovation and brilliant code.

      I'm honestly not trying to detract from the product of your efforts; you and the reviewer both clearly tout this book as a wide introduction to web development with an emphasis on exposing the reader to different approaches and within that context it looks like it is very successful. My major gripe is with books on web development in general, though I certainly cannot hold you personally responsible. (And I won't rule out the possibility that, speaking as a grizzled web developer, I can't appreciate this book and what it teaches.)

      Of course, it all boils down to the fact that reviewers and critics may have differing opinions but they're meaningless if you find that the book personally works for you.

      Kudos on getting published.

      --
      Vilk, from the ranks of the freaks
    4. Re:Free Alternatives by cscx · · Score: 1

      At work, I currently work on a IIS VBS ASP website on NT 4 using Oracle 8i (on some UNIX server). My love for Microsoft is not great and would like to eventually move the site off of NT.

      Yuck. Oracle's drivers (you need them to use Oracle-specific features, such as accessing large objects through OLE-DB) are piss-poor. If you're using the MS drivers or plain ODBC you should be fine, but if you require Oracle 8-specific features on NT using Oracle's client, I can only give you my best words. I've downed more than one bottle of liquor over Oracle 8 on NT. Oracle needs to get their shit together, and put together a better support site. Everything is join this, join that, pay this, pay that. It's too bad they don't offer free support documents just like every other software company in the world!

    5. Re:Free Alternatives by Anonymous Coward · · Score: 0

      Introducing the new Bio-Optic Organized Knowledge device, trade-named-BOOK.

      BOOK is a revolutionary breakthrough in technology: no wires, no electric
      circuits, no batteries, nothing to be connected or switched on. It's so easy
      to use, even a child can operate it. Compact and portable, it can be used
      anywhere-even sitting in an armchair by the fire-yet it is powerful enough
      to hold as much information as a CD-ROM disc.

      Here's how it works:

      BOOK is constructed of sequentially numbered sheets of paper
      (recyclable),each capable of holding thousands of bits of information. The
      pages are locked together with a custom-fit device called a binder which
      keeps the sheets in their correct sequence. Opaque Paper Technology (OPT)
      allows manufacturers to use both sides of the sheet, doubling the
      information density and cutting costs. Experts are divided on the prospects
      for further increases in information density; for now, BOOKS with more
      information simply use more pages. Each sheet is scanned optically,
      registering information directly into your brain. A flick of the finger
      takes you to the next sheet.

      BOOK may be taken up at any time and used merely by opening it. BOOK never
      crashes or requires rebooting, though, like other devices, it can become
      damaged if coffee is spilled on it and it becomes unusable if dropped too
      many times on a hard surface. The "browse" feature allows you to move
      instantly to any sheet, and move forward or backward as you wish. Many come
      with an "index" feature, which pin-points the exact location of any selected
      information for instant retrieval.

      An optional "BOOKmark" accessory allows you to open BOOK to the exact place
      you left it in a previous session-even if the BOOK has been closed.
      BOOKmarks fit universal design standards; thus, a single BOOKmark can be
      used in BOOKs by various manufacturers. Conversely, numerous BOOKmarkers can
      be used in a single BOOK if the user wants to store numerous views at once.
      The number is limited only by the number of pages in the BOOK.

      You can also make personal notes next to BOOK text entries with optional
      programming tools, Portable Erasable Nib Cryptic Intercommunication Language
      Styli (PENCILS).

      Portable, durable, and affordable, BOOK is being hailed as a precursor of a
      new entertainment wave. BOOK's appeal seems so certain that thousands of
      content creators have committed to the platform and investors are reportedly
      flocking to invest. Look for a flood of new titles soon.

      Nah - It'll never catch on.

      *** This message transmitted on 100% recycled electrons

    6. Re:Free Alternatives by Ex-MislTech · · Score: 1

      O-btuse
      R-AM
      A-busing
      C-orrupt
      L-ame
      E-xecuti ble

      Is it a coincidence ? I think not .

      Even my supervisor at www.inet.com called
      this Or-suckle when I worked there .

      Peace...
      Ex-MislTech

      --
      google "32 trillion offshore needs IRS attention"
    7. Re:Free Alternatives by IMarvinTPA · · Score: 1

      Here's the best way I have found to use Oracle LOBs and access in general.
      Oracle's ODBC driver is pretty good. It supports "LEFT JOIN" and "RIGHT JOIN" all you have to do is "FROM { oj tbl1 INNER JOIN tlb2 ON tbl1.fld1 = tlb2.fld1 } " and it is all good there.

      Now, you use Microsoft ADO and use a loop with fld.GetChunk(128) and that is good. (Either keep a field to tell you how big it is or do special checks to see when you are done.)

      Finally, make sure all your LOB fields are the LAST fields selected in your query (select * does not work) and use them after all your normal fields and your LOBs in selected order and things are good.

      The documentation sucks that you can find online, and Oracle 8 is getting harder to find on oracle's site these days anyway.

      I don't love it, but it works and meets the customer's requirements.

      IMarv

  18. who needs a LAMP? by sulli · · Score: 3, Funny

    I post webpages in the dark.

    --

    sulli
    RTFJ.
    1. Re:who needs a LAMP? by msimm · · Score: 1

      Oh, you pornographers!

      ;-)

      --
      Quack, quack.
  19. which brand was that ? by Galahad · · Score: 3, Funny
    (Descriptions are based on their Bios, intuition, and unsubstantiated rumors.)

    Phoenix, Award, or AMI ?

    --
    --jdp Maintainer of VisEmacs
  20. What I can't figure out ... by Galahad · · Score: 1
    Open Source Web Development with LAMP (henceforth OSWB)

    is what the 'B' stands for.

    --
    --jdp Maintainer of VisEmacs
    1. Re:What I can't figure out ... by bware · · Score: 1

      Open Source Web Book - the web site is www.opensourcewebbook.com, as www.lamp.com and www.oswb.com were taken.

  21. This just in... by Znonymous+Coward · · Score: 1, Funny

    From the office of Iraqi Information Minister Mohammed Saeed al-Sahhaf (aka Baghdad Bob):

    "No LAMPs have been looted from government offices [person seen running through streets in background with LAMP]. It is all lies! Evrything is okay!"

    More at 11.

    --

    Karma: The shiznight, mostly because I am the Drizzle.

  22. JOLA - For Coprorate by Anonymous Coward · · Score: 2, Informative

    LAMP is good, but JOLA seems to be the best mix of technologies for the corporate environment. Java is a mature programming environment already being blessed by many F500 companies. Oracle is more trusted than mySQL and Postgres. Like Java, Oracle has a proven track record and probably already has an install base at most F500 companies. Linux...this is a GREAT way to get an Open Source platform in the door. Apache, the same way. With RedHat and Oracle being G. certified...this seems to be a no brainer. The fact that Oracle has Java and Apache support, built-in, is only a HUGE plus!

    If F500 companies are going to use open source, it will have to be done slowly and carefully. You and I both know that LAMP will probably do the job. My job, as an IT consultant is NOT to convince others like me that this will work. No, my job is convince some monkey-assed MBA who is more worried about SAP and the bottom line than Linux, Open Source, GNU, or any other HOT technologies.

    Lessen the risk by introducing Open Source slowly. Once the Linux platform is in place, then the door becomes open.

    Think JOLA over LAMP for the corporate environment!

  23. BIOTCH in 23.5 hours! by Anonymous Coward · · Score: 0

    I think Lamp is overrated, I would hold out for the O'Rielly book on BIOTCH
    ms-BOB + IIS + Oracle + Tivoli + Carnivore + HP

  24. Re:LAMP? I used it on my FreeBSD box by PetoskeyGuy · · Score: 1

    Yeah it's the Gnu stuff that binds it all together, but GAMP just doesn't have that ring to it. And some people use PostreSQL too, but we can always slide that in under the P. ;o)

  25. O'Reilly???? by Anonymous Coward · · Score: 2, Informative

    This is not an O'Reilly book!

  26. Re:LAMP? I used it on my FreeBSD box by Cathy573 · · Score: 1
    My only objection? Having a title that implies that only Linux can do this.

    Yeah, but, Linux is the only OS that can do LAMP. Now, maybe the trinity of open-sourced BSDs (Open, Free, Net) could do BAMP instead. But, that would be a completely different book, Open Source Development Using BAMP.

    My only complant is not enough BSD books out there.

  27. Re:LAMP? I used it on my FreeBSD box by diggem · · Score: 1

    Imagine if BSD were the one in the spotlight. We might be reading a book with "BAMP" in the title. See how wrong that is? Thank your lucky stars that it's Linux and NOT BSD.

    (removing tongue from cheek...)

    -diggem

  28. Re:LAMP? I used it on my FreeBSD box by starfish23 · · Score: 2, Funny

    I typically use GAMP to mean "goofy-assed Mac problem" when testing web sites on the Macintosh platform. ;-)

    Dom

  29. Re:LAMP? I used it on my FreeBSD box by bware · · Score: 3, Informative

    Thanks for buying the book!

    We didn't mean to imply that only Linux could do this stuff, but you have to admit that LAMP is a better acronym than UAMP (Unix), BAMP (BSD), BLAMP (BSD/Linux), G/LAMP (GNU/Linux), MAMP (Mac OS X) or some combinatorial subset thereof. We say in the intro that most of the book is suitable not only for Linux, but most *nix-based machines.

    But hey, LAMP is good marketing, and I didn't want to spend a year working on a book called BLAMP.

  30. It's not O'Reilly by andy@petdance.com · · Score: 1
    It's from Addison-Wesley, not O'Reilly.

    No animal. No hand-tools. Must not be ORA.

  31. SSIs Dead? by Lexic0n · · Score: 1

    Sorry to be off-topic, but this review sparked a question that has been lurking at the back of my mind for a while now.

    I am in charge of all the web development for a medium-sized parachurch organization, the Willow Creek Association. I come from a hand-coded HTML background; I do most of my page edits/development in Visual InterDev. We run NT 4.0/IIS 4/ASP 3.0 on our web server.

    I have relied heavily on SSIs to include header, footer, and sidebar on our web pages. I have been hearing for over a year now that SSIs are pretty much dead. Unfortunately, I have no budget for training, and I know my web skills are falling behind.

    Can someone tell me what is replacing SSIs? And is hand-coding of web sites becoming hopelessly antiquated? Do you have to use something like a Dreamweaver to maintain a site these days?

    Any info is appreciated. I want to do the best I can for our organization, and it's hard to stay current being a one-man show with no training budget. Thanks!

    1. Re:SSIs Dead? by LauraW · · Score: 1
      If you're just using SSI for headers, footers, and so on, you'll get better performance by using a tool that can generate static pages from some sort of template that says where the various bits of content go.

      The tool I use for this is Dreamweaver, from Macromedia. It gives you a WYSIWIG view of your web pages and lets you define templates, "library items", and so on. When you change a library item or template, it updates every affected page:

      Pros:

      • WYSIWIG view. (I think it's a "pro", anyway. I used to write all my HTML by hand, but I have better things to do with my time.)
      • Keeps track of templates and other complex site structure
      • Newer versions know about JSP syntax, nested JavaScript, etc.
      Cons:
      • Expensive
      • Runs only on Mac and Windows
  32. How do I get a signed copy? by Anonymous Coward · · Score: 0

    SLSIA.

    1. Re:How do I get a signed copy? by Brian+Hatch · · Score: 1
      If anyone is going to the Northwest Regional Linux Fest in Bellingham, Washington, I'll be giving out some copies of OSWB that the publisher sent me for that purpose. I'd be happy to sign them. Since I took my job as a tech editor a bit further than most, there are sentances, occasionally whole paragraphs of this book that were written by me. I even put in jokes now and then.

      Luckily, James and Brent replaced my attempts at humour with stuff that was funny.

  33. Re:LAMP? I used it on my FreeBSD box by Ed+Avis · · Score: 2, Insightful

    Wouldn't most of the book apply to Apache on any platform? (In particular, Apache on Windows, provided mod_perl has been ported to Windows.) So perhaps it was not necessary to mention the operating system at all.

    Instructions about 'how to build the Apache source code' are OS-specific, but it probably makes more sense to write a book assuming that Apache is already installed, since the procedure for installing it varies so much (rpm/deb/binary tgz/build-from-source/GNU stow/Windows installer/etc).

    --
    -- Ed Avis ed@membled.com
  34. Books like these lead to bad code by esconsult1 · · Score: 3, Insightful
    Sure, you'll be able to learn how to use the underlying technologies to create web programs, but what about teaching people how to create proper web programs in the first place. Budding web developers need to learn about practices such as:

    • Scalability
    • Caching
    • Database Independent Libraries
    • User Authentication methodologies
    • Connection Pooling
    • Code/HTML Separation: Templates
    • Modular programming & Libraries
    • Web security techniques
    • Sessions and cookies

    All the above items are technology neutral, and applicable, whether you are a Micro$oft or Open Source programmer, or a Java junkie.

    IMHO, because of the lack of such books, we have truly terrible web coding practices out there right now. Instead of such books, we have the latest "LAMP Book Of The Week". The LAMP books are ok, but due to the web development practices presented in 97% of them, I cannot recommend to friends and colleagues.

    If there is such a book out there, then let me know, because I have not seen one.

    1. Re:Books like these lead to bad code by ip_vjl · · Score: 1

      I agree that the skills you point out are good to know ... but I would disagree that they belong in an intro level book.

      For the person who doesn't even know how to make a DB connection, teaching connection pooling is going to be a failure. They need to be able to build their own "Hello World"s so that they can get a basic understanding of what the pieces are, and what they do, and how to manipulate them.

      Once they know the basics of building a dynamic site, THEN they can move on to performance enhancements. If anything, a mention of these topics as things you should learn would be appropriate, but I think if you include them, you lose the ability to use it as an introductory material.

    2. Re:Books like these lead to bad code by bware · · Score: 2, Insightful


      I don't disagree with you, but recognize that any book that isn't to be lifted with a forklift has to make choices. Your book would have had different subject matter than the one we chose to write.

      We discussed addressing at least some of these, but the book is already 460 pages, and we felt that these were out of the scope for the audience we chose.

      We talk about web security where ever possible, but again, it's a big subject and one that deserves its own study once the student is ready. We try to point out where one should worry about it (hint - most of the time).

      Budding web developers should also learn about good web design practices, and I had some good rants about that, which were lost on the cutting room floor.

    3. Re:Books like these lead to bad code by Anonymous Coward · · Score: 0

      The author of this book did a pretty good job at explaining these concepts, even if a bit outdated now and limited to PHP. It has such good information that you should be able to apply much of it to other languages as well, IMO.

      http://www.amazon.com/exec/obidos/tg/detail/-/07 35 709971/

      Tony

  35. Re:SSIs Dead? No - use WML by hrarbinger · · Score: 1
    If you're just using SSI to include header/sidebar/etc stuff, then what you should really do is save your CPU cycles and use WML. SSI requires each page get's rewritten each time, each 'exec' gets run each time. If you're just using it for the window dressing, you're better off with static pages.

    That's where WML works - you can still keep all your window dressing in one place, you still include it automatically from your new docs, so no copy/paste problems or big hassles when you want to change the entire site - just change the included file. However WML then 'compiles' the .wml files into static .html files, so no SSI overhead. You serve "static" html that was generated via WML in a somewhat "dynamic" way. the best of both worlds.

    According to the review, OSWB has a chapter on WML. I've never seen a book that covered it, and it's kind of hard to learn from scratch and the man pages, so I'd recommend you get the book. Yeah, I haven't read it, but Lee did a great job on Hacking Linux Exposed, I'm sure this is great too.

  36. Re:LAMP? I used it on my FreeBSD box by carlos_benj · · Score: 1

    (removing tongue from cheek...)

    Whose?

    --

    --

    As a matter of fact, I am a lawyer. But I play an actor on TV.

  37. Re:LAMP? I used it on my FreeBSD box by bware · · Score: 1

    >Wouldn't most of the book apply to Apache on any platform?

    I believe this to be largely true, but haven't really kept up with what's available on other non-*nix platforms (cough - Windows), so didn't want to talk out of school.

  38. MOD Parent up - this is the author! by Anonymous Coward · · Score: 0

    This is one of the authors responding to the question - mod up!

  39. Re:LAMP? I used it on my FreeBSD box by tmark · · Score: 2, Interesting

    I don't believe for one second the emphasis was on Linux because it made for a better acronym. Why not go with "AMP" ? Sticking "Linux" on the cover just helps the publishers capitalize on the Linux buzz, which makes me immediately wary of the book.

  40. this book title is confusing by axxackall · · Score: 1
    This book should be called "Web Page Development", while what you describe is about "Web Application Development". The problem is that most of so-called web-developers do not know the difference, they just prototype few pages and then decide to extend them to meet the most of obvious business requirements for future web application. Result? It's unscalable, unrelable, unsecure, unpredictable, unmodular and often yet slow.

    As for LAMP, I support only first letter, L (Linux), while the rest three are for web pages. Instead I am trying to use LZPP - Linux Zope, Python, PostgreSQL, the technology that enables web application development in a scale up to web portal content management. Being free and open-source at the same time :)

    P.S. BTW, with L (Linux) is not strictly required for ZPP (Zope, Python, PostgreSQL) as ZPP works exactly same way on win32, macosx, bsd and commercial unices. BSD user may call it BZPP :)

    --

    Less is more !
  41. Re:SSIs Dead? No - use WML by Lexic0n · · Score: 1

    Very helpful. Thank you!

  42. Actually, they do cover these issues. by Brian+Hatch · · Score: 1
    Lee and Ware do cover these issues. Persistant database connections, user authentication methods (both in Apache and in CGI/mod_perl/etc), caching (how it affects 'scripting' languages, etc), proper way to create user sessions with cookies, templates (as used in WML mostly). Even though it's an intro level book, they cover many issues that are often explained poorly or burried in other books.

    The whole goal of this book was to explain how to do things the right way. Unlike most other LAMP books, they do cover these issues, and do so with security and proper coding/software architecture techniques in mind.

    If there is such a book out there, then let me know, because I have not seen one.

    You haven't read OSWB - go get it and see what you think after actually reading it.

  43. Re:SSIs Dead? No - use WML by Lexic0n · · Score: 1

    Of course, WML appears to be available only for Linux/Unix. Since we're a Windows shop, doesn;t look like WML is going to be an option for me.

  44. Re:Linux + Apache + MySQL + Perl by Anonymous Coward · · Score: 0

    Now here is poorly supported argument if ever I have seen one.

    First off, saying that LAMP is an inferior solution because some of the folks that use it do not use it appropriately is just plain ignorant. If some folks use dynamic server side content generation when static content would do just fine, that is certainly not the fault of the underlying technology.

    Second, can you please explain how LAMP is geared towards over complicating simple tasks? This statement is so vague it is meaningless so further details would be appreciated.

    Can you actually provide some concrete details about how the caching architectures differ between Apache and IIS as well as specific performance statistics?

    Last but not least, how is DHTML relevant to a discussion on server side architecture? Any server side technology can output DHTML if the application designers decide that is how their application is going to work.

    A response from you would interesting unless of course you are just going to continue to spew more poorly reasoned and unsubstantiated garbage.

  45. Postgres reality check by ze_lee · · Score: 4, Insightful

    I personally am not fond of mySQL - though it's very easy to set up and maintain. Come on, a database with no subselects? (Never mind the other missing pieces, like no stored procs).

    The reality is that mySQL has the larger installed base, so it it probably the best way to ease into dynamic development.

    Also, what hosts even support Postgres? I run it at home, I've run it at work - on the companies' dedicated servers - but I don't know if there is a host out there that supports it. Which is too bad.

    1. Re:Postgres reality check by hrarbinger · · Score: 2, Informative
      The 4.x branch of MySQL do support subselects now. I don't know if every form of them is supported, but it's getting better.

      For the 3.x which don't support any subselects whatsoever, they do have example that shows how you can often avoid a subselect by careful use of LEFT JOIN, but often the answer is "use a temporary table" or "post-process it in your application to generate the subsequent queries." I agree, lack of subselects are a show stopper for many complex apps. But for many uses, subselects aren't terribly necessary. Your simple e-commerce app will just be reading the items' price, pictures, description, and sticking customer orders into a different table - nothing terribly taxing.

    2. Re:Postgres reality check by ze_lee · · Score: 1

      I know, the new mySQL release (see the recent news.com story about the 4.1 release.

      However, the work-arounds you mention (temp table etc) are just that. Work arounds. And the final release is still about eight months down the road.

      And there are still no stored procs or foreign-key support. Those are show-stoppers for any highly transactional site.

      But mySQL IS getting better. Which is good.

    3. Re:Postgres reality check by Anonymous Coward · · Score: 0

      PostgreSQL walks all over mysql.

  46. Not rpm-installable option? Wrong! by ze_lee · · Score: 1

    Well, at least I have a RPMs for postgres that came with RedHat 6.2, 7.1 and 7.3 (I think the postgres on the 7.x are the same, the RH 6.2 was the older postgres release).

    It is definitely available.

  47. Have to start somewhere by ze_lee · · Score: 1

    I agree with you about the wasted trees on configuration and all that. If I took all the chapters on how to install and set up Apache from just the PHP books I have and put them together, I have a dumpster sized pile of redundant material. Ditto for mySQL installation blah blah...

    HOWEVER, there is merit to having a book, as opposed to online documentation. Yes, php.net rocks. It's open in another window on my screen right now - often is.

    But this is a newbie/best practices book, and that is hard to get from a Google search.

    I'm virtually entirely (hmm...there's a stupid combo of words) self-taught in PHP, Perl, Cold Fusion, VB, ASP, JSP and so on...which is fine -- I like that.

    At the same time, working on your own, you tend to pick up some bad habits. After you work with the language for a spell, you (hopefully...) realize the errors of your earlier days (why not just have the header and footer as includes?!? Duh!).

    But a book - well written by folks knowing what they are doing (in other words, they've already made the mistakes you're going to...) - helps you past some of those bad habits.

    By reading and playing with a book's code, you can glean info that will port back into your own code - and THEN php.net and Google searches make more sense.

    Example: Image you're using this book and you really don't know SQL. Would you even KNOW to do a search to see the syntax of an "EXISTS" clause on Google? No. You wouldn't even know such a thing exists (pardon the pun; unintentional).

    I have a buttload of books around me as I code - a few that are VERY well-thumbed - and I use the Web. Both are valid. Depends on what you're doing and what you know about what you're trying to do.

  48. LAMP and what it really means by Qbertino · · Score: 1

    Linux, Apache, MySQL, PHP.
    And no, that's *not* Perl.
    I wonder who got that idea at first.

    --
    We suffer more in our imagination than in reality. - Seneca
  49. wheee by john_smith_45678 · · Score: 0

    ANOTHER MySQL in 24 hours book. Zzz.

    I guess it's:

    1. Learn MySQL.
    2. Write book about MySQL.
    3. Target book to newbies (i.e. use "in 24 hours", etc.).
    4. Profit.

    I'm so tired of the MySQL bandwagon...

  50. What just one skinny chapter on PHP...???? by codepunk · · Score: 1

    How can anybody even consider this book as being serious. I only know one or two people that even use perl for web development anymore. The only people I still see using perl are the ones that are scared to learn a new language. This book is a history book in my opinion.

    --


    Got Code?
    1. Re:What just one skinny chapter on PHP...???? by Anonymous Coward · · Score: 0

      Let me see if I understand your logic here.

      You are only aware of a few people who use Perl for web development and there fore you jump to the inevitable (in your view) conclusion that there must be only a few people who use Perl for web development.

      This is seriously flawed logic and it's always a bad idea to define the limits of the rest of the world by your own ignorance.

  51. Re:LAMP? I used it on my FreeBSD box by Kragg · · Score: 1

    8 is a bad estimate but parent still ain't flamebait.

    This is redundant, I grant you.

    --
    If you can't see this, click here to enable sigs.
  52. Re:SSIs Dead? No - use WML by El+Rey · · Score: 1

    It does say on their page though that it's all written in ANSI C and Perl 5, both of which are available for Windows... Might not be too hard to get it compiled under Cygwin...

  53. Re:Actually, they do cover these issues. Really? by AndersDahlberg · · Score: 1

    I don't get it: "The whole goal of this book was to explain how to do things the right way.".

    By this you mean that mod_perl (OUCH!!!)/cgi (OUCH!!!)/persistent database connections (OUCH!!!) are "doing things the right way"?

    Well, if you're implying that then I agree that the title of the book is way off - it should be "developing web pages for dummies" instead.

    # Scalability
    cgi - no way
    perl - probaly not, prove me wrong
    persistent database connections - hmm, a though one - depends entirely on implementation and judging from how deply this subject is covered I would definetely say NO WAY!

    # Caching
    Very important to cache correctly if you want scalability and/or performance + cluster wide cache (very hard stuff for beginners)
    http://www.tangosol.com/ / http://www.jboss.org -> cluster etc

    # Database Independent Libraries
    yep, very good to have!

    # Connection Pooling
    this should probably be handled by an application server anyway jboss, orion etc (or the 20 or so other java app. servers) zope - python?

    # Code/HTML Separation: Templates
    YES!!! no code in your view (remember MVC?)

    # Modular programming & Libraries
    YEP, aspected and object oriented components too.

    # Web security techniques
    # User Authentication methodologies
    well...

    # Sessions and cookies
    Sessions: yes
    cookies: well, if you *just* (e.g. no major persistence of state) need cookies it's probably a bad idea anyway...

    Sure, the book is probably ok if it's intended for a the niché of common visual basic asp/php hackers (mind you, I know there exists qualty php code out there too - even though all these bulletinboards is suggesting "hacking")

    but trying to justify that it also cover the previous mentioned areas is just plain shortsighted!

    All of the above is of course IMHO ;)

  54. Php can be cached aswell... by Humanclone · · Score: 1

    You need to check out the php caches and accelerators to see what php is capable of.

    eg: The ionCube PHP Accelerator

    1. Re:Php can be cached aswell... by metalpet · · Score: 1

      yeah. good stuff. don't get slashdotted without it.

      Plus a half serious LAMPist knows when to generate a truly dynamic page and when to generate a page in batch from a cron job. (hint: if it doesn't contain user-related information, it's usually a good cron job candidate.)
      And of course, she will know as well when to artfully mix both in a seamlessly integrated user experience. or something.