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.
Will it help me upgrade from IIS and Access? I want lots of clicky things and flashing colours! Oh and Bob & Clippy too!
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
shouldnt one become fluent in php before attempting database work? I fail to see how this is good for beginers.
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
Most c# books I've looked at seem to assume someone coming from a c/c++/java background. Are there any good books that make no assumptions?
I've heard really good things about mono a developers notebook but I've also read that it's not good for beginners.
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
Finally, a >> refrence to php. im sick of paying $50 for those so called "bibles" (i call them doorstops.)
-ND
$26.39 at Amazon.com. $31.99 at BN.com
New year Resolution: Don't change sig this year
This is one a day now...
If anyone knowsThis guy's got buyers lined up.
an impressive volume, both in girth and content
Funny, my last girlfriend described my penis that way too...
yes
.. bah )
php == beginner
python == fucking travesty
#!/usr/bin/perl == language of god
lisp == language of god's father
postgres == really cool and slow ( vacuum
mysql == really fast and easy to deal with
oracle == five gojillion dollars
slashdot == home of n00bs
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
Books are so 1980 to me. I know that some people rely on them, but it seems so much easier to me to find what I'm looking for on the web. Just curious: who disagrees with me, and why?
Postgres was the revision of Ingres; PostgreSQL was Postgres with SQL. Minor oversimplification, but good enough.
It's been PostgreSQL for years- please call it by its proper name :-)
Please help metamoderate.
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.
Posted by JonKatz on 11:05 AM June 10th, 2001
from the -exploiting-the-hacker-legend-(dumbly)- dept.
Swordfish is the second stupid movie in recent months -- Antitrust was the other -- to exploit the hacker myth/legend and wrap a mindless crash-bang action film around it. The first minutes of this film are promising, a neat riff on the nature of movies and their endings. But after that, there isn't an auto smash-up or explosion that this movie doesn't love. Maybe producers think it's hip to write goofy and unrealistic hacker characters into silly films, that they will make this tired form contemporary in some way. But if there's much more of this, the term "hacker" will become as distorted a word as the media has tried to make it. SPOILAGE WARNING: Plot is discussed, no ending.
There's no particular reason for hackers to be spared the Hollywood distortion machine any more than generals or cops, but this is a particularly distasteful perversion of an idea that, to my knowledge, has yet to be captured intelligently on film. The really dramatic hacker impact on the world -- especially on technology, work, creativity, freedom -- may just get lost to the peculiar history woven by American popular culture.
Swordfish has John Travolta playing Gabriel Shear, a shadowy, omnipotent, brutal globe-trotting villain (He "isn't like us. He does whatever he wants, gets what wants, goes where he wants," is the way one character describes him.) Problem is, it's never clear what he wants, and after a few minutes, you won't really care. Mostly, he likes to blow things up.
Shear goes to an extraordinary amount of trouble to coerce Stanley (Hugh Jackman), once the world's best hacker, into working for his evil organization, whose purpose is to destroy terrorists who target Americans.
Jackman, fresh out of Leavenworth (shades of Mitnick), has been forbidden by a federal judge from ever touching a computer again. We first see him in a decidedly un-hacker context, swatting golf balls atop a trailer in rural Texas where he has been exiled with his mutt, working as a mechanic. Mostly, he pines for his daugher, taken from him by his villainous and drunken ex-wife, now shacked up in L.A. with a rich porn producer. Stanley, we learn, sacrificed himself and his family to plant a bug in the FBI's Carnivore tracking program, in a one-man crusade to protect his friend's e-mail, as he so stirringly explains. His work, grumbles FBI Agent Roberts (Don Cheadle, who seems to play a lot of sweet-hearted federal agents these days) set Carnivore back two years. The world should be so lucky.
Presumably, this explanation is supposed to make all of you seek, like and recommend this movie, since Carnivore is never explained in the film and the reference will make no sense to 99 percent of the people who go see it. You can be sure that real hackers sure won't.
Stanley, who will go to any lengths to get his kid back, abandons his dog and accepts Gabriel's offer of $10 million to hack into DEA computers, get hold of $9 billion in laundered drug money, and transfer it to Gabriel's account. For reasons that are never explained, this bloodless crime can't be accomplished without destroying half the cars in L.A. After interminable self-righteous heming and hawing, Stanley goes along, breaking into one encrypted file after another in seconds (often at gunpoint or with his daughter's life hanging in the balance) and spouting much self-righteous rhetoric about violence and whether ends justify means. To get custody of his daughter, though, he is willing to tolerate a few thousand bodies flying through the air, though he is at continuous pains to disapprove. Gabriel, can't, of course, off him, since he's the biggest bad-ass hacker on the planet, and nobody else could crack the DEA's code.
In any case, Stanley's moral objections vanish when he sees the cool equipment Shear gives him to use. Code flies. Real hackers will gag at one especially grotesque scene in which Stanley practically humps his machine while crackin
http://phpbuilder.net/
All you need. Includes all the MySQL functions, too.
--- witty signature
I should point out that I prefer PostgreSQL.
HA!
please. for any real programmer all of php and mysql could be covered in incredible detail in about a 3 page brochure.
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.
$23.29
& PAGE=PRODUCT&PROD_ID=830996&fp=F&siteID=oP5Nuw5q6f c-kbas_RoPUTAqfr3Ksb7wWA
http://www.overstock.com/cgi-bin/d2.cgi?cid=54554
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.
I think that's why the title starts "Beginning..."
I disagree. Your suggestion is the way the US education system tends to work - teach kids the easy way first, then teach them the right way later (and explain why the easy way is wrong).
The magic quotes feature escapes data for use in a query. There are lots of things you can be doing with data, and storing it is just one.
Also, the escaping that magic quotes does is equivalent to the addslashes function. This is a good last resort, but better options exist for many databases - for example, mysql_escape_string for MySQL.
Thumbs down. NOte to authors: There are already way too fucking many PHP + MySQL books. Give it a rest. And stop doing newbies a disservice by foisting the crap that is mysql on them. Use PostgreSQL.
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.)
PHP and MySQL are "heady"? What sort of head do you have?
in girum imus nocte et consumimur igni
Comment removed based on user account deletion
Any reason to stick with PHP4 other than hosting compatibility?
On BN it's $32, on Amazon it's lower - about $26.
4Z5TX
http://www.bookpool.com/.x/o46bbmdu1n/ss?qs=Beginn ing+PHP+5+and+MySQL&x=25&y=11
"Be kind, for everyone you meet is facing a great battle." - Philo of Alexandria -
Impressive girth huh? I think I got an email or two about that somewhere.
796F75617265616E65726400
I'd actually just bought the book yesterday, because I'd seen another review (Linux Format magazine, UK) and Norbury-Glaser's review just reinforces how good a book this really is.
:D
:( .. but I bet that once I finish the book, it'll be worth every single penny I paid for it - no matter what price that was! ;)
I can't wait to sink my teeth into it late at night, burning the midnight oil
I've just checked Amazon's UK price and I paid the RRP of 25 quid, instead of 17.50
.... "PostgreSQL" to me really fast, I'd probably say "Geshundheit"......
Why on earth do we need another PHP + MySQL book coming out every two weeks? None of this stuff is complicated - PHP is about as simple as a scripting language can get, MySQL is simplistic to the point of being frequently useless; and even the more general field of web application development (which these books rarely go into with any depth) is not all that involved, in the grand scheme of things.
So, why? Why do we need more of these things? Are the five hundred existing books really so crap that they are not enough to learn the arcane arts of PHP and MySQL?
sic transit gloria mundi
Anyone else know what I mean?
So going to the can and hoping to achieve useful work is a bit of a problem - I have to take a laptop and a book...
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
I know exactly what you mean. I find that if I have to read a short story for my writing class, rather than read the pages the teacher assigns, I find it on the web and it seems to be much easier to read and understand even though it is the exact same text. I think I just don't have good lighting at my desk so the monitor actually helps my eyes.
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.
all you have to do is enter your smtp server in the php.ini file and you can send mail fine. Personally, I use phpmailer as it gives you lots more features.
I am NaN
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
Right, especially since your e-mail address is jason.lyndhurst@samspublishing.com, right? Nice try, though.
Why doesn't someone write a pgsql/php book, just because the php folks chose to make mysql a default, doesn't mean that mysql is 1) good 2) even desired.
$25.19 including free shipping for orders over $25. Trick is to pay $10 to be a member and get the extra discount.
Infuriate left and right
It's mine and I replied to the wrong post without reading properly and really really should have just left it alone. I like books-a-million, good prices and good site.
Infuriate left and right
Does anyone have any reccomendations on a good online reference to learn PHP aimed at proficient programmers? I have a lot of experience in general coding (C, C++, Java, etc) as well as server side programming, in most languages except PHP. (ASP, coldfusion, lasso) I'm curious if there is somewhere online that can get me up and running in a shorter timeframe, a resource that doesn't have to explain to me what a for loop is and why I should use it. Thanks
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,
Case in point. This cool, much reviewed open source e-commerce app:
http://www.oscommerce.com/
Yes a good book on php/mysql is the need of the hour
Chris ,
Php Programmers.
only slightly if your are a member at bn, and i can pick it up locally and save shipping
no big sig
From what I've seen. I also find PHP more readable. I think Perl has better pattern matching and string handling.
Just my $0.02. I'm not an expert in either.
30 books is far more than there is to say about PHP and MySQL.
sic transit gloria mundi
can't we have some kind of newbie category? this is not development news.
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
At the moment im writing a fairly lengthy PHP app and will probably co-host it somewhere in the next 6 months.
My concerns like most savvy developers will have security on their minds at all times. I don't want to rely on the ISP's config, and if they want to change something that might seem insigificant, but at the same puts my app in danger of falling over or exposing some security weakness.
So, I was wondering if its yet possible to have multiple php.ini files for each virtual domain under apache? If not, do you know if anybody is working on it?
Really, now. Most people understand this by middle school.