Build Your Own Database-Driven Website
Unlike the arbitrary structure exemplified by so many programmers' references, Build Your Own Database Driven Website using PHP & MySQL is written more like an instruction manual, with chapters arranged in the order in which you should use them.
The first chapter explains the installation of PHP and MySQL; the next two cover usage basics. In Chapter 4 you're already pulling information from your database and publishing it on the Web. Chapters 5-10 refine what you've already accomplished, and delve into advanced topics in both PHP and MySQL.
If you're familiar with Yank's original tutorial, on which he based this book, your familiarity will end with the closing pages of Chapter 10. Chapter 11 addresses the storage of binary data in MySQL, a topic that was of great interest to me personally as I'd never done it before. In keeping with the rest of the book, Chapter 11 is a step-by-step guide, and explains the storage of binary data in a practical, down-to-earth manner that inspires you to give the book's teachings a try. Already I'm searching for an excuse to build a system, just to experiment with what I've learned. Chapter 12 covers cookies and sessions in PHP. The usage of cookies and sessions is essential to any online authentication or shopping cart system, and this topic makes a great final chapter that complements the book's other lessons.
This book makes good on its promise to teach you everything you need to know to build a database driven Website, but fortunately for us the author decided to throw in a few extras -- these take the form of four reference appendices. Appendix A covers MySQL syntax, which, while covered throughout the book, is easily referenced through this well-organized appendix. Appendix B explains MySQL functions, while Appendix C covers MySQL datatypes in considerable detail, so much so that I found this information easier to use than the official MySQL online reference. Finally, Appendix D covers the PHP functions that are used with MySQL.
If you progress in your programming skills you'll eventually need to buy a complete programmer's reference for PHP, although you probably won't need to buy an SQL reference unless you start using a more robust database solution than MySQL. However, if you want to build your first database-driven website, or even if you have built one before but want a practical reference, I can't recommend this book highly enough. Build Your Own Database Driven Website Using PHP & MySQL will guide you step by step through the development process -- who could ask for more?
You can purchase Build Your Own Database-Driven Website Using PHP & MySQL, 2nd Ed from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
Before I read it I was successful and happy.
Now I'm a tired bitter old man.
Damn this book
Damn this book to hell
Who wouldn't build their own database website. Imagine slogging through hundreds of pages of fixed html. Does anyone know of sites like these other than personal pages put up by newbies? All of my sites are at least dynamic using php.
Checking out my form of escapism.
php is way to slow for big sites :*( unfortunately with out some state of the art cache.
Avoiding the "Slahdot Effect"
Je t'aime Stéphanie
This book is so year 2000 man.
that once you learn the basics of PHP and MySQL all books on SQL/MySQL and PHP just don't cut it. You would probably be better off with the online documentation from the respective websites and for those really though cases a PHP/MySQL Cookbook.
My penguin ate my sig
to the PHP and MySQL Web Development book by Welling & Thomson, from SAMS.
Good to see more 'tutorial' style books coming out - its the real world examples that springboard a beginner's skill level w/ a new language.
I'd much prefer to see this type of tutorial book in the hands of a n00b than a straight-lexicon or syntax book w/o examples of actual apps you can build. Sounds like a good one, based on the review.
Tons of papers:
www.cgisecurity.com/lib
SQL injection, and Database security:
http://www.cgisecurity.com/sql.shtml
XML:
http://www.cgisecurity.com/xml.shtml
Java:
http://www.cgisecurity.com/java.shtml
A vague summary of the chapters with generalized praise. Thanks Slashdot!
leave it to open source (mySQL) to remove the bloat.....
xao
xao
http://TheHillforum.hopto.org
... but aren't there already a bunch of books that do this? I mean, wouldn't a more useful book be one about *designing* a database driven site? Stuff like content management, implementing full text search, session tracking, user logins, site organization and navigation, that sorta thing?
I mean, do we really need *another* book that tells you how to program in PHP and how to use MySQL?
Anyway, from the review, I suppose this would be a good replacement for those books. I just think what we need is something more.
"Times have not become more violent. They have just become more televised."
-Marilyn Manson
Putting an affiliate link makes the review so much more credible.
All 295 pages, every day? Wow... the only way this would be true for me is if I forgot how to count all the way up to 295 and had to make use of the page numbering.
Seriously, will somebody reset the hyperbole detector? Mine keeps going off.
I have a PHP book that's 567 pages long. I have two SQL books: one has 377 pages; the other has 719. Yet I consider 295-page 'Build Your Own Database Driven Website using PHP & MySQL' by Kevin Yank more valuable than any of these books.
Just because a book is long, doesn't mean it's useful.
like the great quote
The Ten Commandments contain 297 words. The Bill of Rights is stated in 463 words. The Lord's prayer has only 67. The story of creation in the Bible uses only 200 words. Lincoln's Gettysburg Address contains 271 words. On the other hand, a recent Federal directive to regulate the price of cabbage contains 26,911 words.
I personally find, the bigger the book, the more difficult it is to navigate and the less useful it really becomes. Quick, short, to the point explanations are almost always better than long details drawn out explanations that I don't have the time or the desire to read.
~ kjrose
Basically, it's a tutorial (build a php/mysql website in 10 steps!). There are plenty of online resources (like devshed) that do tutorials like this all the time. (Note to slashdot editors: devshed spell checks submissions!). If you like to read on the john, this book might be for you. Chances are, you'd be better off to save your money for a mysql or php reference book.
Do you even lift?
These aren't the 'roids you're looking for.
You know, it might be useful if Slashdot book reviews were limited to books that are currently in print!
Forget PHP. Use Whitespace! If that is too hard, install FrontPage! The real l337 h4x0r solution.
How to Download YouTube Videos
it's based on a very popular article series he did for sitepoint.com and other sites. I dl'd and printed out all of those articles that comprise the base of the current book and they are dog-eared and well worn. I especially like his tone througout the articles (nice sense of humor) and concise coding style well explained. I will 'browse' this book at Bordersss if they have it and if I see new stuff I will buy it.
So why is this book reviewed? Not even available at BN.COM or amazon.com or bookpool.com.
-sid
Wrong. Install MySQL first and then install apache and mod_php together.
Daniel
Carpe Diem
"...all 295 pages of Yank's new release are of value to me on a daily basis." While regular bowel movements are to be encouraged, you'll find toilet paper to be more cost-effective.
Slashdot should take this post's suggestion...
I develop 'AMP' solutions and IMHO this book, in addition to the PHP cookbook, are the best two books you can buy on the subject. You can really tackle most any problem with these two books and if you cant, there is always IRC or as a last resort the documentation :)
I don't keep a lid on my coffee so when I walk around I look busy -me
It seems too many websites out there have mile-long URLs(including huge session ID strings) and other gizmos only to deliver the same static content over and over again.
What ever happened simply to static web pages that are nice and simple, and dish out the data without all that overhead?
The book is apparently not available at BN, so I checked Amazon, and they have it.
... I can't find the PDF on kazaa yet..
Trolling is a art,
I remember a couple of years ago when I started playing with both PHP and MySQL, I tumbled on a tutorial on webmonkeybase.com (defunct and now hosted on lycos I think) written by Kevin Yank. I was really a goor intro to PHP/MySQL, even covering the security aspect of managing a MySQL database. Then perhaps a year later the article was mentionned on MySQL Articles page (I looked but didn't find it anymore) I was happy to see that the tutorial I followed was good enough to make it to the MySQL web page.
:^)
And that was a couple of years ago. I can't imagine the experience he (Kevin Yank) must have acquired since then.
I will not buy his book, I speak french and am aleady equipped. But for anyone looking to buy a book covering both PHP and MySQL, without even reading it, I would suggest it.
Good luck Kevin!
my personal preferance would be Tomcat/JBoss/Apache/postgresql. there's a lot of benefit to taking advantage of product which implement standards and even more benefit when those products are open source free as in beer and free as in speach.
> Avoiding the "Slahdot Effect"
:-)
Were you refering to the Slashdot-caused bandwidth spike?
Or did you mean the "I can't spell" Slahdot effect?
Sorry... it's so unclear what you meant..
I've read Yank's article on mysql.com's docs section - found it excellent way to pole-vault learning curve...
like a "cookbook" book, but organized in a logical way that takes you from start to finish - not just a jumble of recipes, but rather a thread to follow from start through all normal road-blocks/issues you'd encounter with normal small sized projects - and how to solve them - stays focused...
I haven't bought the book yet though...
Of course, mixing the left hand and right hand paths is dangerous.
I can name that tune in 5 notes, all P166 boxes:
1. Open BSD firewall (2 nics)
2. Squid inverted cache (2 nics)
3. webserver (apache-mod throttle)
4. MySql/Postgresql database
5. Fileserver
Profit!
using Oracle!
The global economy is a great thing until you feel it locally.
Third article in the last couple of weeks about yet another PHP + MySQL book. They all seem to be for the newbie's too. How about representing some other languages, other databases and some advanced techniques.
Maybe I'm just bitter because of my extreme hatred for PHP.
The Anti-Blog
Sitepoint (the publisher) has them here. The downside is you have to give them your email address first.
Don't just game, Dungeoneer
If you want to make a database for a FORUM or other online databases on Mac OS X, this is THE site to find everythign you need to do:
http://www.entropy.ch/software/macosx/php/ The only thing he forgot is that having a little online webapp called webmin really helps setting up your MYSQL a TON, turst me, it is worth it if you are not an expert with this stuff, even I was able to do it.
http://www.ohlssonvox.com
http://slashdot.org/search.pl?query=php+mysql&op=s tories&author=&tid=§ion=books&sort =1
I'll be honest, I'm just bored of seeing reviews of yet another PHP/MySQL book every few days.
There are an awful lot of comments here about this book only being useful to newbies. So far as I can see that is exactly who it is meant to be for. I can program all sorts of stuff, and have been for many years, but I still found this book useful when I had to make a content driven web site a few months ago.
Sounds like good stuff, I think I'll pick up this book. Anyone have any recommendations on books regarding setting up and configuring LDAP servers in a style similar to this book?
You have uncommented code with embedded HTML that is database specific. Don't get me wrong... if you have a small project that works with a quick hack, then that's ok.
With any modern PHP project, what's wrong with using templates, PEAR, and object oriented programming? Most PHP books out there tend to spin the mantra of PHP and MySQL or Postgresql without taking the time to show how to use PHP in a modern context where it deserves to be. Thus much PHP programming gets scoffed at because it tends to be unmaintainable.
I'm sorry, but at this point I'm unable to recommend almost any of the PHP books out there. They mostly encourange terrible PHP system development practices -- embedded HTML, database specific coding, non OOP development.
There are a few sites that are showing the light. phpclasses.org only has OOP based PHP programs and the tools you need to use templating, mailing, databases in a thoroughly modular manner, and dont forget the PEAR site which documents and make available the excellent PEAR classes for PHP.
A few other sites also are preparing PHP libraries and development environments that are a joy to work with.
For PHP public www information is better that 99% of the books out there, and in the case of this book... 100%
Newsfollow.com
I have NEVER felt a I needed a book to teach me PHP/MySQL, both projects have fantastic online documentation.
I think you pretty much nailed it. PHP books are a waste of money it seems. There are several good, free tutorials, and the syntax is already close to Perl and C. If you've used any programming language, then you can pick up PHP with no problem in an hour or so.
Besides, it seems like so many PHP books (and programming books in general) simply reprint the reference manual inside the book. Hell. I've seen several books for sale which simply reprint the Java API docs in paper form. Who buys these things?
Hi,
I bought this book a few months ago to learn just what the title says it teaches. Unfortunately, it had many, many typos in the code examples that resulted in me being stopped cold.
One would need to already know a lot about PHP to know what needed to be fixed. Sadly, there was no online "errata" for the errors that stopped me cold. I think there was an online errata, but it didn't list many of the errors that stopped me cold.
It was only due to my posting the non working code online and getting strangers who already knew PHP to point out what was wrong that I was able to proceed -- at least until the next non corrected error that stopped me cold again.
Finally, In disgust, I gave up and bought the Wrox book (by Welling?) that just came out with a second edition.
What's sad is there is no excuse for the lack of an online errata for the errors that stopped me codl time and time again. I had the latest edition of the book.
IMO, save your money and time -- buy the Wrox book instead and make PROGRESS learning PHP and MySQL.
Though slashdot was certain that I could:
Barnes and Noble assured me that, indeed: I cannot. There is one used copy of the book available. If they knew they had the only copy, it'd probably be on e-bay.That what was all this school was for... to teach us how to solve our own problems. -- janeowit
...driven websites. Imagine that was what you did all day long and you had to do it to bring home enough money to pay the rent and eat food. I don't think I could hack it. I think I'd commit suicide. Even worse, imagine you did this for a living but you didn't realize what a drudge it was. Imagnie you thought it was an interesting job and that you were smart for being able to do it.
Doesn't it make you feel good to know that our freedoms are protected by politicans, lawyers and journalists.
Or better yet a set of simple, concise data files and a batch method for converting it to static HTML after updates for display on the web. What's this internet coming to?
Actually, I started out developing my website with every single page being dynamically generated using a cgi script. I did it mostly because it was 'cool' to have a 'dynamic' website. I quickly realized that my pentium 166 mHz (which is my webserver) wasn't doing so hot serving up lots of dynamic pages. So it took a slow computer to make me realize how much easier static pages are in some cases.
As a result of what I've learned doing my personal webpage, I'm doing my next major website using static pages that are dynamically generated by perl scripts. That way, I get the efficiency of having a website with a database backend without the overhead of calling perl scripts (or using mod_perl which is still slower than static pages afaik).
Just my personal experience...
Also, I'm hesitant to do pages like that book teaches (in PHP or Perl) because if the database goes... you're SOL. Using static pages generated from scripts allows you to still serve up content if the database dies.
neurostarComputer Graphics, Principles and Practice. 1175 pages.
Compilers: Principles, Techniques, Tools. 796 pages.
Competitive Advantage. 557 pages
The whole D. Knuth series.
TCP/IP Illustrated, Volume 1,2,3
list goes on and on and on! I'd say the author of a large book is more ambitious, and thus more prone to fail, but all "true bibles" tend to be large.
Ther eis a place for PHP when having a dynamic back end to a static or semi-static front end.
Personally I use mod_perl to maintain a cache. The backend PHP will clear the cached pages as necessary. If an uncached page is requested mod_perl passes it on to PHP to generate it and pops a copy in the cache.
My clients can then update their contents (job adverts) as often as they like and my site will keep the navigation menus up to date.
I also scrape content from our partners.
In this way I can forget about the CPU load of the page generation.
There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
The people behind this book also run an excellent website on web-development:
www.sitepoint.com
"unless you start using a more robust database solution than MySQL"
you're saying MySQL is not robust???
MT does just that and is widely used by the blogging community.
There are many plugins available for it, too.
All you need is CGI (perl) support on your server -- it doesn't require a database and the site it generates is based on static pages (partially) updated every time the admin makes a change.
here
S
Does anyone here use Smarty? We love it, and have found it to be a wonderful template engine.
It has a great user manual, but I would welcome a good PHP book that deals with Smarty templates.
smarty.php.net
Suncoast Linux - Sarasota, FL
PHP indeed borrowed a lot of language features from Perl, but its syntax is strictly C-like; no required braces, no embedded regexps, no magical, one-character variables, etc., etc.
:)
I agree with you that PHP's functions are awkward, but I'm sure you can find a way to implement namespaces in PHP--PHP has classes, it has hashes, and it has an eval() function, so you can probably figure something out. What I really hate is how PHP handles variables and scoping--that's really criminal. Also, anonymous subroutines and closures would be nice to have...
I never really wanted to write as much PHP as I have, but I don't think it's difficult to be a competent PHP programmer--it's just like being a competent programmer. Just because a lot of people aren't doesn't necessarily mean that it's a problem with PHP. I admit that I'd rather be doing all this in Perl, though, because some of PHP's 'features' and version incompatibilities are a real pain sometimes. Maybe *that's* why it's hard to find competent PHP programmers...
There are tons of templating engines for PHP; I've basically hacked together my own solution as well. I haven't compared them, but doing everything in pure PHP seems pretty simple to me; it has an include() function, and that's really 99% of what you need.
So I agree with you that PHP has some serious problems, but I think I disagree with you about exactly what those problems are.
pb Reply or e-mail; don't vaguely moderate.
i have to deal with architectures that get enormous traffic, and from a performance standpoint, there is simply nothing worse than dynamic database-backend content.
i pose that 95% of the sites out there don't need it. at ALL. use php for content management, yes, but BUILD STATIC PAGES!!!! to do otherwise is just silly and asking for headaches.
Does this book cover installation on Mac OS X? If I wanted to learn PHP, would this book apply to a local Mac installation?
I find this manual and this one more valuable than any book. And it's free too.
This is the most stupid post I've ever seen, I'm out of slashdot, for ever and for good!
...because we wouldn't have been able to find it without a link pointing directly to it.
After all, search engines are for whimps.
BTW, nice referal ID. Informative indeed.
Goodness. You must spend a significant amount of your work time every day reading through them, right?
Avoid "PHP and PostgreSQL - Advanced Web Programming" by Ewald Geschwinde and Hans-Jürgen Schönig [Sams 0-672-32382-6]. This book is infected with enough misprints and errors to render it unusable, but at 770+ pages, at least it's bigger'n yours. More 'spensive too. neener-neener-neener.
The Russians have won. They have made the world a cesspool of distrust, greed, fear and hate.
php is a template engine, why build an other one on top of it like smarty does. The only thing smarty really does is force you to seperate business logic and layout. You can also do that without using smarty. I mean What is so much more difficult from using
compared to {$bla}
Try XSLT.
It's powerful, has it's own php extension (instead of php classes like smarty and patTemplate -- although, come to think of it, the extension is just a Sablotron API so meh), and it's a W3C standard. On the downside, you need to configure your environment, which can be a problem depending on your hosting solution. You'll also have to learn XSL and work with XML but the semantic web is the future so get used to it.
"The number of Unix installations has grown to ten, with more expected." (Unix Programmer's Manual, 2nd ed.; june 1972)
You can buy the book directly from the publisher ($34.95): http://www.sitepoint.com/books/
The home page of SitePoint has a lot of articles on planning, designing, and coding (client- and server-side) for the web.
There's even a picture of the pretty-boy author.
obviously no deficiencies vs. no obvious deficiencies
Please don't spring new acronyms upon us without defining them. Not all of us are clued into the PHP world, and all its pet names and acronyms.
What do people think of OpenACS?
This is a tautology.
The only explanation I can come with is that either most of computer books readers are so stupid and ignorant or, if they are not, then publishers are so stupid to ignore what readers really need. Either way, the computer world is stupid and there is no place for smart technologies.
Less is more !
Good Lord, ANOTHER article about PHP+MySQL. More authors trying to capitalize on the uninformed newbie market. LAPP (Linux Apache PostgreSQL PHP) NOT LAMP!
John Kerry is a Joke!
Seems very fast and actively developed.
Based on upvotes, Ageism is the only "-ism" Slashdotters care about and think isn't SJW
"Additionally, those sights can look good on a Resume since it shows the person has enough interest in the technology to play with it outside of the workplace."
Would that happen to be the same
Resume that is presently out of work?
"Just because a book is long, doesn't mean it's useful."
:)
It's not how long it is, but how you use it.
But answer me this... did the book ever stop you cold at any point?
:)
OK, I'm being an ass. Sorry.
Enhydra for the Java set is good, or Ariadne for the PHP crowd is decent. For those doing a shopping-cart Interchange or osCommerce is nice. If one's running a RPM distribution get cpan2rpm as well.
initially i was the same, wasn't this book but web database management which sounds something similiar to this book. But the book started to loose its value after a while and then you just depend on mysql.com and php.net for their manuals.
Programming a dynamic PHP/MySQL website is "stupid easy" as a friend of mine says. I am so tired of seeing these "all-in-one" books. If they made a PHP/MySQL for Dummys book - it'd be 4 pages long. Maybe after reading this book, the websites write themselves. The hardest part of designing these websites ends up being whether you can keep the customer from changing their mind for long enough to push the project out. Criticisms I have for alot of PHP/MySQL combo books are that they generally don't include these:
- Good documentation on Objects
- Security Concerns
- php.ini explaination and configuration
- Memory Concerns
- Good examples of database normalization?
Sorry, but I think that if you've got a good MySQL database book, and the digital format of the PHP manual (available in multiple formats from www.php.net) You have everything you need but the server. INCIDENTALLY: MySQL not "robust" enough? 4.1 is going to hit you like a freight train.
It seems the only jobs available in PHP and MySQL is in writing books about PHP and MySQL because there are more books than there are jobs
Shouldn't a book review be for a recent book? This one is almost two years old - so old it isn't even available on Amazon, BN.com, or Bookpool... How about some new stuff instead of the book gathering dust on your shelf that you finally got around to reading?!?!
MySQL IS a robust implementation of ANSI-SQL.
y sq l_4_1=on&oracle=on&ms_sql=on&db2=on&sybase =on
For a side-by-side comparison to DB2, MS SQL, Oracle and Sybase, follow the link below:
http://www.mysql.com/information/crash-me.php?m
These absurd statements that MySQL is a kiddie SQL server are driven more by marketing than anything else. I expect this crap from managers, but it floors me to hear it coming from developers. I can't imagine any experienced DBA would think that the SQL implementation in MySQL is so pathetic that it would not even require a newbie to have a SQL reference.
i think with separating business logic from layout, smarty is also good for separating the programmer's job from designer's job. this can *really* save some administrative work if you don't built all aspects of an entire site alone.
The book review on Kevin Yank's "Build..." is followed by a link to Barnes and Noble, to buy the book.
:-(
When you follow the link, BN informs you they've run out of print with the book.
If you go to some other online bookstores, you find the second edition readily available.
A book specifically written about the domain you are interested has more relevant content than multiple books written about the larger domains your subdomain is a part of.
I'm truly shocked.
Next you'll be saying that if I want to learn how to build a wooden chair a book called 'How to build a wooden chair' would have more relevant content than both 'Carpentry 101' and 'Wood: from Trees to Sawmills'.
of reviewing an Out of Print book?
You can see an example here I just started a small website that is all static, and it does something like what you say. you enter your body message in a text file and run the script(see link for script) and it regenerates that page. Also you can change another file the change the menu and run the script to regenerate all the pages. So here is a perfect example of what you are saying to do, minus the fact that it doesn't do the uploading. But I do belive I'll take a look at that book my meathod for parts and the books meathod for parts of a site would expand options.
LinuxWorx
Spelling errors are intentional as are gramatical error
I dunno... it did a pretty good job of explaining blobs to me. That was worth it to me. (Oh and the PDF stuff wass pretty good too).
2nd Edition
Covers PHP 4.3
Covers OSX!
Don't wait
Buy it now!
Amazon
> Who wouldn't build their own database website...
Lots of people (who know what they're doing).
Some sites need to be fully dynamic, most sizable sites need some dynamic content, many need no database content at all.
Stop making generalizations and start thinking.
However I picked up a copy of Open Source Web Development with LAMP that's by the same guys that wrote Hacking Linux Exposed and it is really great. It has an extensive PHP chapter, but the real juice is in how it covers all of apache setup, perl, php, mysql, and even mason, HTML::embperl, and WML in one place. I'd never heard of it, but when I flipped through it on the shelf I couldn't put it down. I highly recomend it.
Do you have the first edition or the 2nd edition? There's not a single errata item for the new edition which just came out a month ago.
_______________
are you suggesting that a jet database could actually handle concurrent read/write of more than oh... 5 at a time? Jet database is a file and that is about it. I think it is great for a simple desktop engine for organizing the number and types of socks you have but as a multi-tiered app? No way, Jose!