Verfügbar:*
Bibliothek | Materialtyp | Regalnummer | Anzahl untergeordneter Datensätze | Regalstandort | Status | Item Holds |
---|---|---|---|---|---|---|
Suche... Government Records | Book | QA 76.73 .P224 W55 2004 | 1 | Stacks | Suche... Unknown | Suche... Unavailable |
Bound With These Titles
Bestellt.
Zusammenfassung
Zusammenfassung
There are many reasons for serving up dynamic content from a web site: to offer an online shopping site, create customized information pages for users, or just manage a large volume of content through a database. Anyone with a modest knowledge of HTML and web site management can learn to create dynamic content through the PHP programming language and the MySQL database. This book gives you the background and tools to do the job safely and reliably. Web Database Applications with PHP and MySQL , Second Edition thoroughly reflects the needs of real-world applications. It goes into detail on such practical issues as validating input (do you know what a proper credit card number looks like?), logging in users, and using templatesto give your dynamic web pages a standard look.But this book goes even further. It shows how JavaScript and PHP can be used in tandem to make a user's experience faster and more pleasant. It shows the correct way to handle errors in user input so that a site looks professional. It introduces the vast collection of powerful tools available in the PEAR repository and shows how to use some of the most popular tools.Even while it serves as an introduction to new programmers, the book does not omit critical tasks that web sites require. For instance, every site that allows updates must handle the possibility of multiple users accessing data at the same time. This book explains how to solve the problem in detail with locking.Through a sophisticated sample application--Hugh and Dave's Wine Store--all the important techniques of dynamic content are introduced. Good design is emphasized, such as dividing logic from presentation. The book introduces PHP 5 and MySQL 4.1 features, while providing techniques that can be used on older versions of the software that are still in widespread use.This new edition has been redesigned around the rich offerings of PEAR. Several of these, including the Template package and the database-independent query API, are fully integrated into examples and thoroughly described in the text. Topics include:
Installation and configuration of Apache, MySQL, and PHP on Unix®, Windows®, and Mac OS® X systems Introductions to PHP, SQL, and MySQL administration Session management, including the use of a custom database for improved efficiency User input validation, security, and authentication The PEAR repository, plus details on the use of PEAR DB and Template classes Production of PDF reportsRezensionen (1)
Library Journal-Rezension
MySQL and PHP are perennially popular open-source companions for creating database-driven web sites. These guides cover MySQL, as well as its use with PHP and other languages. Web Database Applications goes beyond teaching particular functions to provide a general background in web database development, then describes how and why to use PHP and MySQL to accomplish the tasks described. Extensive appendixes cover the software's installment on multiple platforms, web protocols, a relational database case study, and other useful additions, while code samples are available online. Recommended for larger libraries. High Performance addresses intermediate to advanced users, walking them through ways to improve the reliability, scalability, and performance of larger MySQL applications. This nicely organized guide eschews how-to basics to address how MySQL works and provides real-world examples whenever possible. Explanations are clear and thorough, and the text supplies links to and explanations of several useful downloadable tools (some written by the authors). Highly recommended for medium and larger libraries. Complete Reference tries to be all things to all people, covering topics from an introduction to relational databases and installing and configuring MySQL to reference material for administrators, but is most appropriate for new and intermediate users. Sidebars and notes add info and link to additional resources, while a welcome thoroughness and clarity make this a good, basic purchase for all libraries. (c) Copyright 2010. Library Journals LLC, a wholly owned subsidiary of Media Source, Inc. No redistribution permitted. All rights reserved.
Inhaltsverzeichnis
Preface | p. ix |
1. Database Applications and the Web | p. 1 |
The Web | p. 2 |
Three-Tier Architectures | p. 3 |
2. The PHP Scripting Language | p. 16 |
Introducing PHP | p. 16 |
Conditions and Branches | p. 28 |
Loops | p. 33 |
Functions | p. 36 |
Working with Types | p. 37 |
User-Defined Functions | p. 43 |
A Working Example | p. 53 |
3. Arrays, Strings, and Advanced Data Manipulation in PHP | p. 57 |
Arrays | p. 57 |
Strings | p. 76 |
Regular Expressions | p. 87 |
Dates and Times | p. 97 |
Integers and Floats | p. 103 |
4. Introduction to Object-Oriented Programming with PHP 5 | p. 108 |
Classes and Objects | p. 108 |
Inheritance | p. 124 |
Throwing and Catching Exceptions | p. 131 |
5. SQL and MySQL | p. 134 |
Database Basics | p. 135 |
MySQL Command Interpreter | p. 140 |
Managing Databases and Tables | p. 142 |
Inserting, Updating, and Deleting Data | p. 148 |
Querying with SQL Select | p. 152 |
Join Queries | p. 160 |
Case Study: Adding a New Wine | p. 168 |
6. Querying Web Databases | p. 171 |
Querying a MySQL Database Using PHP | p. 172 |
Processing User Input | p. 188 |
MySQL Function Reference | p. 208 |
7. Pear | p. 219 |
Overview | p. 219 |
Core Components | p. 220 |
Packages | p. 230 |
8. Writing to Web Databases | p. 251 |
Database Inserts, Updates, and Deletes | p. 251 |
Issues in Writing Data to Databases | p. 270 |
9. Validation with PHP and JavaScript | p. 285 |
Validation and Error Reporting Principles | p. 285 |
Server-Side Validation with PHP | p. 287 |
JavaScript and Client-Side Validation | p. 307 |
10. Sessions | p. 338 |
Introducing Session Management | p. 339 |
PHP Session Management | p. 340 |
Case Study: Using Sessions in Validation | p. 347 |
When to Use Sessions | p. 357 |
PHP Session API and Configuration | p. 360 |
11. Authentication and Security | p. 369 |
HTTP Authentication | p. 369 |
HTTP Authentication with PHP | p. 373 |
Form-Based Authentication | p. 385 |
Protecting Data on the Web | p. 397 |
12. Errors, Debugging, and Deployment | p. 402 |
Errors | p. 402 |
Common Programming Errors | p. 407 |
Custom Error Handlers | p. 412 |
13. Reporting | p. 422 |
Creating a Report | p. 422 |
Producing PDF | p. 427 |
PDF-PHP Reference | p. 440 |
14. Advanced Features of Object-Oriented Programming in PHP 5 | p. 457 |
Working with Class Hierarchies | p. 457 |
Class Type Hints | p. 462 |
Abstract Classes and Interfaces | p. 462 |
Freight Calculator Example | p. 469 |
15. Advanced SQL | p. 479 |
Exploring with SHOW | p. 480 |
Advanced Querying | p. 481 |
Manipulating Data and Databases | p. 497 |
Functions | p. 505 |
Automating Querying | p. 513 |
Table Types | p. 516 |
Backup and Recovery | p. 522 |
Managing Users and Privileges | p. 527 |
Tuning MySQL | p. 532 |
16. Hugh and Dave's Online Wines: A Case Study | p. 541 |
Functional and System Requirements | p. 542 |
Application Overview | p. 544 |
Common Components | p. 551 |
17. Managing Customers | p. 583 |
Code Overview | p. 584 |
Customer Validation | p. 587 |
The Customer Form | p. 591 |
18. The Shopping Cart | p. 596 |
Code Overview | p. 597 |
The Winestore Home Page | p. 598 |
The Shopping Cart Implementation | p. 604 |
19. Ordering and Shipping at the Online Winestore | p. 618 |
Code Overview | p. 618 |
Credit Card and Shipping Instructions | p. 620 |
Finalizing Orders | p. 624 |
HTML and Email Receipts | p. 630 |
20. Searching and Authentication in the Online Winestore | p. 642 |
Code Overview | p. 643 |
Searching and Browsing | p. 648 |
Authentication | p. 658 |
A. Linux Installation Guide | p. 667 |
B. Microsoft Windows Installation Guide | p. 688 |
C. Mac OS X Installation Guide | p. 698 |
D. Web Protocols | p. 714 |
E. Modeling and Designing Relational Databases | p. 726 |
F. Managing Sessions in the Database Tier | p. 746 |
G. Resources | p. 761 |
H. The Improved MySQL Library | p. 766 |
Index | p. 779 |