did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9781449325572

PHP & MySQL

by
  • ISBN13:

    9781449325572

  • ISBN10:

    1449325572

  • Edition: 2nd
  • Format: Paperback
  • Copyright: 2012-11-27
  • Publisher: Oreilly & Associates Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $39.99 Save up to $1.75
  • Digital
    $38.24
    Add to Cart

    DURATION
    PRICE

Supplemental Materials

What is included with this book?

Summary

If you can build websites with CSS and JavaScript, this book takes you to the next level-creating dynamic, database-driven websites with PHP and MySQL. Learn how to build a database, manage your content, and interact with users through queries and web forms. With step-by-step tutorials, real-world examples, and jargon-free explanations, you'll quickly discover the power of server-side programming. This second edition provides new code files and expanded coverage of local and server-side programming. The important stuff you need to know: Learn the language. Get up to speed on PHP and SQL syntax quickly. Gain new techniques. Take advantage of the all-new chapter on integrating PHP with HTML web pages. Manage your content. Use the file system to access user data, including images and other binary files. Make it dynamic. Create pages that change with each new viewing. Build a good database. Use MySQL to store user information and other data. Keep your site working. Learn the tools for fixing things that go wrong. Control operations. Create an administrative interface to oversee your site.

Author Biography

Brett McLaughlin is a senior-level technologist and strategist, active in web programming and data-driven customer-facing systems. He designs, manages, and implements large-scale applications from start to finish with mission-critical implementations. Formerly an editor at O'Reilly Media, he's written several technical books, including Java and XML and Head First Object-Oriented Analysis and Design.

Table of Contents

The Missing Creditsp. vii
Introductionp. 1
PHP and MySQL Basics
PHP: What, Why, and Where?p. 15
PHP Comes in Two Flavors: Local and Remotep. 15
PHP: Going Localp. 21
Write Your First Programp. 38
Run Your First Programp. 40
But Where's That Web Server?p. 42
PHP Meets HTMLp. 45
Script or HTML?p. 46
PHP Talks Backp. 51
Run PHP Scripts Remotelyp. 54
PHP Syntax: Weird and Wonderfulp. 61
Get Information from a Web Formp. 62
Working with Text in PHPp. 69
The REQUEST Variable Is an Arrayp. 83
What Do You Do with User Information?p. 90
MySQL and SQL: Database and Languagep. 91
What Is a Database?p. 91
Installing MySQLp. 95
SQL Is a Language for Talking to Databasesp. 104
Dynamic Web Pages
Connecting PHP to MySQLp. 119
Writing a Simple PHP Connection Scriptp. 120
Cleaning Up Your Code with Multiple Filesp. 132
Building a Basic SQL Query Runnerp. 138
Regular Expressionsp. 155
String Matching, Double-Timep. 156
Generating Dynamic Web Pagesp. 173
Revisiting a User's Informationp. 174
Planning Your Database Tablesp. 175
Saving a User's Informationp. 182
Show Me the Userp. 190
Revisiting (and Redirecting) the Create User Scriptp. 208
From Web Pages to Web Applications
When Things Go Wrong (and They Will)p. 221
Planning Your Error Pagesp. 223
Finding a Middle Ground for Error Pages with PHPp. 229
Add Debugging to Your Applicationp. 237
Redirecting On Errorp. 242
Handling Images and Complexityp. 253
Images Are Just Filesp. 254
Images Are for Viewingp. 279
And Now for Something Completely Differentp. 288
Binary Objects and Image Loadingp. 289
Storing Different Objects in Different Tablesp. 290
Inserting a Raw Image into a Tablep. 292
Your Binary Data Isn't Safe to lnsert…Yetp. 296
Connecting Users and Imagesp. 303
Show Me the Image!p. 313
Embedding an Image Is Just Viewing an Imagep. 324
So, Which Approach Is Best?p. 330
Listing, Iterating, and Administratingp. 333
Thinking about What You Need as an Adminp. 334
Listing All Your Usersp. 337
Deleting a Userp. 345
Talking Back to Your Usersp. 351
Standardizing on Messagingp. 362
Integrating Utilities, Views, and Messagesp. 369
Security and the Real World
Authentication and Authorizationp. 385
Basic Authenticationp. 386
Abstracting What's the Samep. 395
Passwords Don't Belong in PHP Scriptsp. 399
Passwords Create Security, But Should Be Securep. 413
Cookies, Sign-Ins, and Ditching Crummy Pop-Upsp. 419
Moving Beyond Basic Authenticationp. 420
Logging In with Cookiesp. 426
Adding Context-Specific Menusp. 443
Authorization and Sessionsp. 455
Modeling Groups in Your Databasep. 455
Checking for Group Membershipp. 461
Group-Specific Menusp. 471
Entering Browser Sessionsp. 475
Memory Lane: Remember That Phishing Problem?p. 486
Why Would You Ever Use Cookies?p. 489
Appendixes
Installing PHP on Windows Without WAMPp. 493
Installing MySQL Without MAMP or WAMPp. 499
Indexp. 513
Table of Contents provided by Ingram. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program