Beginning PHP and MySQL
One key to the book's success is the manner in which Gilmore approaches his subjects. The text is split neatly into three sections: the first deals exclusively with PHP and comprises the bulk of the book's content, the second section goes into depth with MySQL and the final chapters deal with PHP/MySQL integration. This layout is where the promise of appealing to such a wide range of user abilities succeeds admirably. The beginner can read cover to cover and come out of the pipe with a solid, practical knowledge of PHP, MySQL and how to combine the two to build advanced web applications. An experienced MySQL or PHP guru can skip the area of his expertise and gain much from the chapters on the other. A more advanced user can use this book as reference material, skim the chapter outline, pick and choose topics of interest and quickly find the answers they seek. Everything is cleanly written, with little or no anecdotal filler or asides. Each chapter begins with a nice overview of what will be covered and ends with a brief but concise summary.
Gilmore begins with nine chapters specific to the PHP language and its many core features and extensions, taking particular care over installation and configuration issues (platform specific instructions are included for UNIX/Linux (Mac OS X users can swim in this pool very easily) and Windows), basics (data types, variables), functions, arrays, PHP's object-oriented functionality and expressions. The next ten chapters delve deeper into PHP's file and operating system functions, web form integration, http authentication, file upload management, LDAP, session management (one of the best aspects of PHP and incredibly easy to use), Web Services (SOAP, SimpleXML extensions as well as NuSOAP and MagpieRSS -- cool stuff!), security and PHP's SQLite database extension. SQLite is an exciting multi-platform database engine that will most likely prove to be hugely popular in the near future. It's interesting to note that Apple plans to integrate SQLite into their next release of OS X, Tiger. Also of note is Gilmore's well-written chapter on PHP and LDAP. He provides an extremely competent introduction to LDAP and PHP's LDAP extension. If you work in an enterprise environment, this knowledge will become an integral part of your mindset and vocabulary.
The SQL section of the book is compact and concise. Gilmore manages to take the reader through a fast but detailed introduction to MySQL. Installation and configuration, clients (the standard set and some GUI based administration clients), table structures and security/user management are all explained with precision and an eye toward practical expectations.
Chapters 26 through 30 stand out, with an integrated approach to both PHP and SQL. This is where Gilmore pulls it all together. The reader is introduced to PHP's MySQL functionality, creating MySQL database classes, indexing and searching, transactions and importing and exporting data. There are numerous excellent real-world examples throughout this section that will enable the reader to create elegant, advanced web applications.
Gilmore removes the complexity and ambiguity inherent in many technical books and gives the reader a detailed approach to these two wildly popular open source packages. Beginning PHP 5 and MySQL will definitely serve the novice, the professional and those in between. For anyone wondering what all the fuss is about with PHP or MySQL or for anyone who has wanted that one volume that will explain it all, this is definitely the book for you. It is at once an excellent tutorial and an indispensable reference manual.
You can purchase Beginning PHP and MySQL: From Novice to Professional from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
For the basics, there's an online course that I put together for an undergradute class last year here: PHP Consulting training.
http://tinyurl.com/4ny52
I've found PostgreSQL to be an easier database to work with and admin. When properly tuned I can't tell the difference between the two for most queries. Just my $0.02.
I'm sure "SlashdotMedia" will improve on all the wonders that Dice Holdings blessed us all with
I'm a good asp programmer with a lot of access and sql server experience, how will this book help me from that standpoint, will it help me to set up php and mysql with at least some pointers on a linux system?
Anyone who has done the above step and can recommend this book for me? Other suggestions?
Thanks
Albert "thec" Sandberg
but now I'm using Postgres and am lovin it. It's one of those things when you didn't know what the hell you were doing before you knew about it.
Postgres is where it is at.
I hope line one tells us to always leave register_globals = off. Better yet, I hope PHP5 always runs that way.
UNIX/Linux Consulting
$26.39 at Amazon.com. $31.99 at BN.com
New year Resolution: Don't change sig this year
When starting out in a new language, I like a book like the Teach Yourself series which starts out by taking you through installing and setting up environment at a very simple level, and then goes on to examples I can skim through and quickly graduate to a referrence book or the online docs.
Most referrence books and advanced books assume you already have a working environment and sometimes (think Java) installing and getting everything working is the hardest part.
Once I'm passed the initial bumps though, I want a book that's aimed at advanced users, mainly because the more "beginner friendly" a book is, the lower the signal-noise ratio in the writing.
Jason
ProfQuotes
Creating a postgresql user who has the ability to create databases makes that user a superuser of ALL databases. This makes postgresql tricky to use in a mass virtual hosting environment.
Also, most web applications are not written to take advantage of features such as stored procedures. This is probably partly because the developers don't understand them, and partly because MySQL is so common already.
that should be
magic_quotes_gpc = On
That's quotes, plural. Sorry for any confusion.
http://phpbuilder.net/
All you need. Includes all the MySQL functions, too.
--- witty signature
Honestly? Because I can read a book in the john. I have an old Unix Power Tools book in the basement bathroom, and I'm still learning new command line tricks. I have to admit though, I've skipped the chapter on Emacs.
I tend to go for books for two reasons. First, I'm not tied to my computer, sometimes I go out, ride a bus / train / plane, and like to read a nice fat tech book. Second, I like to have the book open WHILE I'm working on a project, and I don't have two monitors side by side. Oh, and I think I'm able to access the info faster. That's three.
"Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
1) Sometimes online resources that give a comprehensive overview are hard to come by. The web usually offers more reference-oriented materials
2) I live in the boonies, and don't have broadband. Searching for information on the Internet is a slow and painful process when you're dealing with 28.8kbps connections.
3) Sometimes I just get sick of looking at the computer screen.
As an experienced PHP programmer, I'd HIGHLY recommend coders, especially beginners, tick with PHP version 4. I know its tempting to get the 'latest and greatest', however, v5 is still too new, and the majority of servers out there still only support v4 code, so you will run into problems if you already start using functions/methods available in v5 only, and dont own/operate/have root on the server in which your code is going to run, and only ever run.
I don't plan to make the switch to version 5 for at least 9 months or so, when v5 becomes the true de facto.
All you need.
Includes all the functions, too. Without advertizements.
To an extent, maybe, but it doesn't take that long to become "fluent" enough in PHP to do database work. PHP 5 has pretty nice MySQL and PostgreSQL connection functions that make working with databases relatively simple.
Learning MySQL and PHP together is actually a great way to go, IMHO. Especially if you have some basic knowledge of C-syntax (C, Java, Javascript, Perl) and database concepts (basic SQL). Each program is only marginally useful without the other, and each can be learned quickly.
. . .it seems so much easier to me to find what I'm looking for on the web.
What you are looking for is not always what you need to know.
KFG
To read enough about any subject to know it in depth, I'll take a book thanks. A lot of days I'm 12 hours in front of the monitors. After a while the screens start to bug my eyes - I find myself printing a lot of stuff just so I can sit back from the desk and read it off a page...
http://request-header.info
I think the parent posters point was another one:
PHP is a programming language for "web-things". MySQL is a relational database. These are two separate things. Even if you know how to access a database from a programming language, you do not necessarily know how to design a database. With a badly designed DB and a relatively small amount of data, the advantage of using a DB might mostly be vanished.
Cheapest price I've found is $23.52 (this includes shipping) from here. Now the question is... PHP or Perl? Which do I choose? (Old debate I know.)
disagree...
I find the web great for getting started on a project and for getting to a more advanced level, but it's that middle ground that a book shines. Most how-to or informational sites just don't have the helpful fluff that a book carries, sure you can assemble the same amount of info from various web sources but a book is just easier.
Plus there's just something wierd about sitting on the can with a laptop.
Saying PostgreSQL is like saying supercalafradjalisticexpialadosous. A real pain. Instead, I just say supercal. Plus it just sounds stupid. Postgres sounds nice and is easy to say. But maybe your just talking about how it is written. In that case, I agree.
Comment removed based on user account deletion
If Tyranny and Oppression come to this land,
it will be in the guise of fighting a foreign enemy. -James Madison
I'm wondering if there ever was a book review on slashdot that had as a title "Don't buy this, stay clear, vaporware". I know that the general intention of book reviews is to recommend good books to others, but what about the really bad ones? Not the obvious bad ones like "Teach yourself linux in 25 minutes" or "Cooking with Penguins".
It's just that I've never seen someone say something negative in the first paragraph of the article. It just seems like authors registered a slashdot account and started promoting their book
More importantley: how about we get a DECENT beginners book? Correction, how about we just drop all beginners books completly?
This is going to be modded troll, I can just feel it - but I stand firmly behind that. I do a *lot* of PHP development - and I can't count the times that I see this "cool script" out there that does this "awesome thing". Then, I take a look at it, the entire thing is a hack job, and it's labeled "Joe's First Script".
We don't need beginners books, we need more experienced PHP devs in the first place, and a beginner's book is only going to maul the already horrible ratio of those "know PHP", and those who can actually use it, correctly.
(That quite obviously came off strong, but I am sick and tired of people who have made money doing PHP, coming to me and asking me why they've got a parse error on line 15, yet line 15 consists of "print('hihi.');" )
Something I've noticed: if you flip the pages too fast, they all become blank with the only message showing:
Warning: mysql_connect(): Too many connections in /usr/hand/book.php on line 4431.
If you open yourself to the foo, You and foo become one.
I'd guess that this ratio is further hampered by the tendency of people who can "use it correctly" to move on to, well, real programming languages.
For whatever reason, PHP just tends to not be as sexy anymore once you know what you are doing.
sic transit gloria mundi
Ah yes; 500 PHP and MySQL books...the two I found most valuable were "Spain for Dummies" and "Zen Vegetarian Cooking."
500 seemed an excessive number to me as well, so I took the unorthodox step of actually checking the hits. Of the 301 hits I got when searching Amazon "books" for "php and mysql" there were about 30 titles actually written on the topic of php and mysql; another 30 or so were concerned with Dreamweaver MX and Macromedia MX; perhaps 30 were about web design or MacOSX or optimizing for search engines or .net...the rest were all Dummies books, ranging from GRE prep to DisneyWorld.
Here's a URL for future reference; it's the #1 hit out of 4229 for "Amazon for Dummies".
S2education is no substitute for intelligence
Finally someone writes a book on PHP and MySQL. And it's even a newbie book on PHP and MySQL! Now I can get to learn this high-end stuff. Crickey, that's so cool.
BTW: I actually plan do do something really cool: I wanna write a Web-CMS in PHP and MySQL. How does that sound, hmm?
We suffer more in our imagination than in reality. - Seneca