Cover image for PHP and MySQL : create-modify-reuse
Title:
PHP and MySQL : create-modify-reuse
Personal Author:
Publication Information:
Indianapolis, IN : Wiley Pub., 2008
Physical Description:
xv, 341 p. : ill. ; 24 cm.
ISBN:
9780470192429
Added Author:

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010186006 QA76.73.P224 B67 2008 Open Access Book Book
Searching...

On Order

Summary

Summary

Learn everything about the dynamic power of PHP and MySQL in real-world applications with the practical information and step-by-step instructions in PHP and MySQL: Create - Modify ? Reuse . The authors, experts in tune with common web development tasks, will guide you through several projects that are complete, tested, and ready to be implemented, so that you can understand by doing. Understand all aspects of design, such as portability, design flow, and integration, and become proficient at solving problems that developers face in everyday circumstances.


Author Notes

Timothy Boronczyk is a native of Syracuse, NY, where he works as a freelance developer, programmer and technical editor. He has been involved in web design since 1998 and over the years has written several articles and tutorials on PHP programming. Timothy holds a degree in software application programming and recently started his first business venture, Salt City Tech ( www.saltcitytech.com ). In his spare time, he enjoys photography, hanging out with friends, and sleeping with his feet hanging off the end of his bed. He ? s easily distracted by shiny objects.

Martin E. Psinas is a recognized security expert and valued member of the open - source community. He has been contracted as a technical editor, code auditor, and is a published author with Pearson Education as well as the #1 PHP magazine, PHP|Architect . In his free time, he maintains his personal web site and is a volunteer administrator/contributor at codewalkers.com ? a resource for PHP & MySQL developers. Martin interacts frequently with the leaders of the PHP project as well as PHP User ? s Groups.


Table of Contents

Introductionp. xi
Chapter 1 User Registrationp. 1
Plan the Directory Layoutp. 1
Planning the Databasep. 2
Writing Shared Codep. 3
User Classp. 5
CAPTCHAp. 9
Templatesp. 11
Registering a New Userp. 12
E-mailing a Validation Linkp. 17
Logging In and Outp. 21
Changing Informationp. 25
Forgotten Passwordsp. 28
Summaryp. 30
Chapter 2 Community Forump. 31
Design of the Forump. 31
Designing the Databasep. 32
Working with Permissions and Bitwise Operatorsp. 33
Updating the User Classp. 35
Code and Code Explanationp. 40
Adding Forumsp. 41
Adding Postsp. 43
Displaying Forums and Postsp. 47
Paginationp. 55
Avatarsp. 56
BBCodep. 59
Summaryp. 62
Chapter 3 Mailing Listp. 63
Design of the Mailing Listp. 63
Choosing POP3p. 64
Designing the Databasep. 65
Code and Code Explanationp. 66
The POP3 Clientp. 66
The Configuration Filep. 73
Account Managementp. 73
Processing Messagesp. 79
Processing the Digestp. 83
Setting Up the Mailing Listp. 83
Summaryp. 86
Chapter 4 Search Enginep. 87
Designing the Search Enginep. 87
Problems with Full-Text Searchp. 88
Designing the Databasep. 89
Code and Code Explanationp. 91
Administrative Interfacep. 91
Crawler/Indexerp. 98
Front Endp. 104
Summaryp. 110
Chapter 5 Personal Calendarp. 113
Designing the Applicationp. 113
Designing the Databasep. 114
Code and Code Explanationp. 115
Creating a Month-View Calendarp. 115
Creating a Day-View Calendarp. 120
Adding and Showing Eventsp. 121
Sending Remindersp. 129
Exporting the Calendarp. 130
Summaryp. 135
Chapter 6 Ajax File Managerp. 137
Design of the Ajax File Managerp. 137
JavaScript and Ajaxp. 138
The XMLHttpRequest Objectp. 139
Code and Code Explanationp. 142
Main Interfacep. 143
Client-Side Functionalityp. 147
Server-Side Functionalityp. 160
Summaryp. 175
Chapter 7 Online Photo Albump. 177
Design of the Online Photo Albump. 177
Code and Code Explanationp. 178
Viewsp. 178
Helper Filesp. 188
QuickTime Thumbnailsp. 190
Thumbnail Cachingp. 192
Summaryp. 193
Chapter 8 Shopping Cartp. 195
Designing the Shopping Cartp. 195
Designing the Databasep. 196
Code and Code Explanationp. 197
The ShoppingCart Classp. 197
Working with the Shopping Cartp. 201
Building the Storefrontp. 209
Adding Inventoryp. 217
Summaryp. 238
Chapter 9 Web Site Statisticsp. 239
Determining What to Collectp. 239
Designing the Databasep. 241
Obtaining Datap. 242
Code and Code Explanationp. 244
Pie Chartp. 244
Bar Chartp. 248
The Reportp. 253
Summaryp. 264
Chapter 10 News/Blog Systemp. 265
Tablesp. 265
Adding Postsp. 267
Generating the RSSp. 278
Displaying Postsp. 282
Adding Commentsp. 285
Summaryp. 289
Chapter 11 Shell Scriptsp. 291
Designing the Scriptp. 292
General Shell Scripting Advicep. 293
Code and Code Explanationp. 294
The CommandLine Classp. 294
Startprojectp. 303
The Skeletonp. 313
Summaryp. 314
Chapter 12 Security and Loggingp. 315
Cross-Site Scriptingp. 315
Path Traversalp. 318
Injectionp. 320
SQL Injectionp. 320
Command Injectionp. 324
Weak Authenticationp. 325
Loggingp. 327
Preventing Accidental Deletesp. 330
Summaryp. 332
Indexp. 333