






PHP4 Web Development Solutions 107
PHP4 Web Development Solutions | |
author | Raj Kumar Dash, Bryan Waters, Alison Gianotto et. al. |
pages | 601 |
publisher | Wrox Press |
rating | Fair |
reviewer | Tony Williams |
ISBN | 1861007434 |
summary | Mid to high level exposition of web site development in PHP |
In brief:
The book, after some expository material, details 11 projects of increasing complexity. They use PHP, MySQL, PEAR::DB, Smarty and PHPLib. The target audience, according to the book jacket, are programmers who already have a good knowledge of PHP, SQL Databases and XML. Frankly, I think they overdo the amount of experience you need to use and benefit from this book. If you are on top of all those topics well enough to consider yourself "professional" then this book may be too simple. If, on the other hand, you are, like me, conversant with PHP and SQL but would like to take yourself up to "professional" use of technologies like XML, templating and WAP enabling then this book will be good.
What's Good About This Book
The book is stuffed full of code examples -- and while you can download them in a ZIP file of over 3Mb you shouldn't think of this book as a "cookbook" as such. It shows various methods for performing most of the tasks you need to build solid backend web site systems to deal with a large variety of data. The projects cover importing and exporting of XML, messaging systems, forums, content management, using templates for both HTML and WML, search facilities and both simple and complex content management among other topics.
The projects are well designed. I'd have to say that among the 11 projects most web site requirements are covered somewhere. The code is well engineered and some thought has gone into making it readable, understandable and useful. The explanatory material is well written, if too short.
One thing I did appreciate about this book is how much they left out. No coverage of PHP fundamentals, SQL fundamentals and simple stuff like web forms might be covered once, at most. I certainly didn't need another book on my shelves explaining the basics.
What's Bad About This Book
My largest criticism of this book is one shared by too many modern titles for computer programmers; there is too much explanation and too much repetition. The section on SQL is the perfect example. Most projects contain some tables describing each database table, a diagram of the relationships and then the full SQL required to build them, their indices and some example data. For their proposed target audience this is way too much information, and as it is safe to assume that everyone who buys this book has a decent 'net connection, why put a printout of SQL available online in a PHP book? I could have easily written the SQL myself and having it in the book doesn't make it much easier and since it was available online it was a total waste of space.
I also have to take exception to, an (admittedly short) chapter devoted to installing and configuring PostNuke. It gives you no more information on this simple task than the online documentation. As someone who has installed PostNuke a couple of times and never needed any assistance beyond the readme files (and the first was long before I considered myself a good PHP programmer) I felt this was a complete waste of space and not "web development" at all.
My final criticism is once again shared by too many modern titles, there isn't really enough discussion of the design decisions and complications. There are enough code examples and walk throughs to satisfy anyone, but not enough key design decisions are discussed at all, with only a few short examinations of any real design problems. I would have appreciated some walk throughs of such things as code that was too slow, problems with race conditions, methods for mixing static and generated parts of a site and all the real world stuff that intrudes when your site gets slashdotted and that code that was so neat with a hundred visitors a day becomes a thousand. Then show how the code they provide is better, avoids the problems and how to get my code to the same state. Since this book is "professional" a little more real world, please.
You can purchase PHP4 Web Development Solutions from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
Re:A 600 page book on PHP? (Score:2)
good if you like that sort of thing (Score:5, Informative)
Re:good if you like that sort of thing (Score:1)
Re:good if you like that sort of thing (Score:2, Informative)
Re:good if you like that sort of thing (Score:1)
Examples in books are a damn good way to learn, you get to look at the whole picture, and wrap your head around it all at once.
I learned my basic knowledge of PHP from a SAMS Learn PHP in 24 hours book, and it taught me the basics, and I may end up grabbing this book to work on the site at my place of employment.
It's going to be a dynamically generated page, with different looks for the different owners after login, with a secure connection to the valid information they need to access (sales,costs, etc) and php is going to be the way to go, with the information served generated by perl.
Re:good if you like that sort of thing (Score:3, Interesting)
Being a sad php-geek, I buy pretty much all the PHP books which come out, but the ones I use the most are the O'Reilly ones, (partly because they are written by the PHP team).
However the best one [IMHO, IANAL etc] for learning and as a reference is the one by Atkinson, by Core [amazon.com].
Well edited, with well thought out examples.
If you can hold out, PHP5 is not that far off.
Re:good if you like that sort of thing (Score:1)
Re:wrox is gone (Score:1)
Wrox Rocks! (Score:1, Insightful)
A must have for the Web Developers / Designers!
--Paul
Affiliate link... (Score:2)
http://search.barnesandnoble.com/bookSearch/isbnI
Anarchy!
Re:Affiliate link... (Score:2, Insightful)
In reality, you're ensuring a corporation like B&N gets more money from the sale. And you know how Slashdotters dislike corporations...
Bookpool == Best Tech Book Site (Score:3, Informative)
Affiliate free link: http://www.bookpool.com/.x/a3emp5af6i/ss/1?qs=186
Php? (Score:3, Funny)
An Online Starcraft RPG? Only at [netnexus.com]
Re:Php? (Score:1)
It is absolutely ontopic, and funny at the same time.
ps. The whole message is 2 words, the first mentions PHP and the second mentions Wrox, there is no way to be more ontopic than that.
Honest Question (Score:4, Interesting)
I've been using Perl and XSSI for all my active web page content for a couple of years now. Is there any compelling reason for me to learn PHP?
I really don't want to start a flame war here, but what are the advantages of PHP over the Perl/XSSI combo?
Re:Honest Question (Score:5, Informative)
When PHP first came out, Perl was the swiss army knife of programming, so I could tie perl, our remedy server, and the web server together and do online reports.
As time went on, it became a bit more cumbersome to work with perl. Mostly because of figuring out how to deal with mod_perl and debugging scripts. I'll admit it - I'm a generally sloppy programmer (which is why I don't do it full time).
PHP gives me a bit more flexibility. It's also becoming a swiss army knife, allowing me to tie a bunch of applications together. But due to the (sloppy) way I code, PHP is better suited to me.
A few years ago I had arguments with a friend over Perl or Python programming for the web. I argued perl, he argued python. At about the same time, we both saw PHP and didn't look back.
Re:Honest Question (Score:3, Funny)
If anything can prove that perl makes you bitter, you need only read the above post.
[/flame retardant suit]
Re:Honest Question (Score:1, Interesting)
Perl's beauty is the sort only masochists can truly understand. It's well on its way to becoming the new COBOL.
Re:Honest Question (Score:1)
Re:Honest Question (Score:1, Interesting)
Re:Honest Question (Score:2, Interesting)
PHP is designed more for database applications
No, PHP was designed (and I use that term loosely) to make dynamic web pages, and the database functions were - like most of PHP - thrown in as an afterthought, unlike perl's DBI [cpan.org], which was designed to be OO and have a consistent interface.
although it can be extended (like Perl) to do a lot more. The routines PHP uses for database management have been thoroughly refined and optimized to achieve maximum speed
That's content-free. All languages can be extended, even Visual Basic, and they all (except perhaps INTERCAL) claim that their libraries have been "thoroughly refined and optimized to achieve maximum speed." Of course, some do better than others (see Doug's shootout [bagley.org]).
I believe it is generally accepted that for databasing, using PHP will result in faster, more streamlined, and smaller code.
And I believe the earth is flat, but it isn't. Or, BZZZT, WRONG (zero for three)! And databasing? PHP isn't neither particularly fast nor compact.
Sad but true: PHP sucks [czth.net]. It's a half-assed attempt by some lame twits to make a programming language for non-programmers, which is sort of like trying to make a car for non-drivers. Whether they succeeded or failed at that goal, we all still lose, because of the horrible proliferation of all the crap PHP scripts on the world.
Dijkstra would probably revise his famous quote for PHP's benefit to: It is practically impossible to teach good programming style to students that have had prior exposure to PHP; as potential programmers they are mentally mutilated beyond hope of regeneration.
czth
Re:Honest Question (Score:2, Interesting)
If you haven't seen this report you should take a look at it:
http://www.bagley.org/~doug/shootout/
This site compares many of the modern languages. PHP really doesn't fare well in this test. Of course, PERL doesn't prove to be the top of the heap either.
Ultimately, I think the most important thing to look at here is lines of code required to do the job. Execution time continues to be less of a concern as processor speeds increase and hardware tends to be cheaper than man hours. (Unless you work in a sweat shop in a 3rd world country.)
There's no one language that adresses all problems.
Re:Honest Question (Score:4, Funny)
Also, you might want to read this for fun
Re:Honest Question (Score:2)
Execution time is still a factor, even as processor speed increases because the hits on the page will hopefully increase.
What I find interesting in the debate between perl and php is that for security, many sites allow perl scripts only from a cgi-bin but php pages from anywhere. Both can run arbitrary system commands with ease, so the security division is somewhat artificial.
Re:Honest Question (Score:2, Insightful)
To sum up, I don't believe an unbiased comparison is possible, and both PHP and Perl are fairly equal as web-scripting solutions right now.
An online Starcraft RPG? Only at [netnexus.com]
Too much information? (Score:4, Informative)
"For their proposed target audience this is way too much information, and as it is safe to assume that everyone who buys this book has a decent 'net connection, why put a printout of SQL available online in a PHP book"
Sometimes its very handy to have things written out in detail. Sometimes you appretiate the extra information given. If you're already browsing through the book you don't want to be interrupted and browse the web to find information. I presume that without the extra information the book would just be smaller.
Re:Too much information? (Score:2, Insightful)
Re:Too much information? (Score:1)
I was objecting to such things as putting all the database information into the book in more than one way and then providing all the SQL code to create the tables and indices.
This is a book on PHP not SQL. They could have indeed used the space to explain more about PHP, if required. It would have been far more useful if they had spent that space explaining some of the design decisions.
While I agree that the publishers are damned if they do and damned if they don't I believe that a book about PHP for professionals can safely leave out SQL table creation code.
Tony Williams
Re:Too much information? (Score:1)
What PHP version? (Score:1)
Blessings and ethernal love for everybody who eventually enlightens me in this matter.
Re:What PHP version? (Score:2)
Re:What PHP version? (Score:2, Informative)
Other choices.. (Score:4, Informative)
Both have at least good reviews (I have the 2nd, and I like it a lot). Not sure how them compare against the one of the article, but at least with fewer authors they don't have so much repetitions.
Re:Also (Score:1)
Help (Score:2)
Sorry... (Score:1)
BTW: I like your sig
Various PHP ramblings (Score:5, Informative)
Wrox has a PHP string handling book coming out, as well as a few others, in the 250-300 page target range. However, I have a feeling these will still be $40+. I'm not sure if Wrox is heading towards ebooks or not, but topics like these deserve to be $15 ebooks, not $45 hardcovers.
PHP has numerous books covering different topics, a professional support organization [phphelpdesk.com] and training courses [tapinternet.com]. (subtle plugs!) What's next on the horizon?
I see the publisher of phparch.com [phparch.com] (good magazine!) has an early PHP->C converter which speeds up code dramatically. Umbrello is a UML modeller for KDE which generates PHP code. I saw refernces to a PHP/Tk/DHTML project, but forgotthe link. Any other cool PHP things people know about?
Comment removed (Score:5, Informative)
Re:PHP 5? (Score:2)
Re:PHP 5? (Score:2, Interesting)
Re:PHP 5? (Score:3, Informative)
Re:PHP 5? (Score:2)
online info has flaws (Score:1)
There is a longer version that may include the comments, but it would take forever to download, and one doesn't really know what the difference is until one downloads it.
Further, paper is still easier on the eyes than screens IMO.
Good Review but... (Score:5, Informative)
It is nice to see a review of a Wrox book on slashdot. Many review of Wrox books are always about how it is difficult to read because of the many authors that have a hand in the book. Sounds like a well written book maybe even good enough to buy [mediagab.com].
Simply put: Wrox sucks (Score:5, Informative)
I consider my library to be analogous to a carpenter's toolbelt: each book in my library is a tool. How useful the tool is is generally indicated by how often I open up the book to find an answer to a question. I rarely find myself referring back to Wrox books. There are other publishers - namely O'Reilly and Addison-Wesley - whose books I do find myself returning to, over and over. The difference in quality is large.
Wrox books are, in my experience, hastily thrown together collaborative works that do me little good in my day-to-day activities. Your mileage may vary, but I've steered clear of Wrox for the past several months, and I haven't suffered at all.
Re:Simply put: Wrox sucks (Score:1)
On the other hand, The Java2 SDK 1.4 book by Wrox press was brilliant for starting out in Java.
I think it makes more sense not to become fanatic about cartain publishers... but rather with certain authors. (Well not *fanatic*... but you know what I mean)
Authors that are definatly on my 'watch for books by them' list are:
Ivor Horton (Wrox)
Robert Lafore (SAMS)
Cathrine Paquet (Cisco Press) (...yes, that's her real name
Jeff Doyle (both Cisco and Juniper Press)
Content summary (Score:1)
Creating an association directory using XML markup and MySQL
Creating a web forum using PHP with MySQL and PEAR::DB
Building a PDA/Wireless store directory application using PHPLib
Creating a job board using PHP, WML, MySQL, and Smarty
Building a news service using PHP, MySQL, and Smarty
Creating a web corpus using simple PHP scripts
Building a classified ads board using PHP with MySQL, and Smarty
Building content management systems using PHP, MySQL, and XML
Building a search engine for dynamic sites PHP, MySQL, and PHPLib
Building a three-tier, multi-client, wireless data warehousing application
Creating a PHP/MySQL based data repository
Building a robust site architecture using the PostNuke CMS
book audience levels (Score:1)
I might even buy it. (Score:2)
too many books for php...are they useful ? (Score:1)
ALL is in the online documentation [php.net], which is pretty good. More : php5 will soon be here...with that time, many new features (better OOP ie).
Ok, leave me alone now ! I need to concentrate, as I'm writting a "learning php5" book
Re:too many books for php...are they useful ? (Score:1)
why any book? (Score:3, Informative)
PHP is also a rapidly developing language, as usually any computer technology is. Print copies will always be chasing it.
Re:why any book? (Score:2)
Empty set (0.01 sec)
Wrox no longer does... (Score:2, Interesting)
PHP-Nuke? (Score:1)
Re:PHP-Nuke? (Score:1)
Re:PHP-Nuke? (Score:1)
Re:PHP-Nuke? (Score:2)
Re:PHP-Nuke? (Score:1)
Re:What would be better... (Score:1)
Recommendations for beginner book? (Score:2)
Re:Recommendations for beginner book? (Score:1)
Re:Stay clear of the Red Books!! (Score:1)
That's why I hate Wrox books (Score:2)
I have always hated Wrox books and never known quite why. The pictures of all the people on some of the covers are kind of cheesey, but I had never put two and two together.
I just can't stand the way they are written. Tech books usually are usually of two varieties; reference or tutorial. Wrox books don't fit either of those descriptions, and usualy (both times) I make the purchase decision after reading a single chapter in Barnes and Nobels and found useful for a specific problem I need to solve. The book after that is not only useless, but I get frustrated when I need information from them.
-Pete
The Wrox Level (Score:2)
OR is the Perl master, would Wrox be the php master?
Smarty: what's so smart about it? (Score:1)
Re:As an American programmer (Score:1)
Re:As an American programmer (Score:1)