分享
 
 
 

《16本PHP系列进阶教程》(PHP MySQL SEO Smarty Zend)PDF

王朝资源·作者佚名  2009-06-19
 说明  因可能的版权问题本站不提供该资源的存贮、播放、下载或推送,本文仅为内容简介。

中文名: 16本PHP系列进阶教程

英文名: PHP MySQL SEO Smarty Zend

版本: PDF

发行时间: 2008年

地区: 美国

对白语言: 英语

文字语言: 英文

简介:

以上书籍是我精心收藏,均来自于互联网。全是英文超清晰版,是适合各阶层的开发人员细读的书籍

引用

注:有中文书名的表示已经有中文版出版,请大家注意!

PHP,一个嵌套的缩写名称,是英文超级文本预处理语言(PHP:Hypertext Preprocessor)的缩写。PHP 是一种 HTML 内嵌式的语言,PHP 最初是1994年Rasmus Lerdorf创建的,刚刚开始只是一个简单的用Perl语言编写的程序,用来统计他自己网站的访问者。后来又用C语言重新编写,包括可以访问数据库。在1995年以Personal Home Page Tools (PHP Tools) 开始对外发表第一个版本,Lerdorf写了一些介绍此程序的文档,并且发布了PHP1.0。在这早期的版本中,提供了访客留言本、访客计数器等简单的功能。以后越来越多的网站使用了PHP,并且强烈要求增加一些特性,比如循环语句和数组变量等等,在新的成员加入开发行列之后,在1995年中,PHP2.0发布了。第二版定名为PHP/FI(Form Interpreter)。PHP/FI加入了对mSQL的支持,从此建立了PHP在动态网页开发上的地位。到了1996年底,有15000个网站使用 PHP/FI;时间到了1997年中,使用PHP/FI的网站数字超过五万个。而在1997年中,开始了第三版的开发计划,开发小组加入了 Zeev Suraski 及 Andi Gutmans,而第三版就定名为PHP3。2000年,PHP4.0又问世了,其中增加了许多新的特性。

目前稳定版本是5.2

出版社:Wrox

中文书名:搜索引擎优化高级编程-PHP版

英文书名:Professional Search Engine Optimization with PHP

页数:387

作者: Jaimie Sirovich,Cristian Darie

内容简介:搜索引擎优化在传统意义上是营销团队的工作。但在本书里,作者将从另外一个角度看待搜索引擎优化,让编程人员也参与到搜索引擎优化的队伍中来。

这本手册专门为PHP开发人员或涉及技术的营销人员编写,涵盖了从Web站点的最初设想、技术规划、可视化设计到贯穿开发的整个过程。本书深入讨论了各种可用于提升站点知名度的技术和服务,并提供大量有用的信息以帮助您创建并维护搜索引擎友好的Web站点和避免一些常见的错误。 该书可供各大专院校作为教材使用,也可供从事相关工作的人员作为参考用书使用。

目录:

Chapter 1: You: Programmer and Search Engine Marketer

Chapter 2: A Primer in Basic SEO

Chapter 3: Provocative SE-Friendly URLs

Chapter 4: Content Relocation and HTTP Status Codes

Chapter 5: Duplicate Content

Chapter 6: SE-Friendly HTML and JavaScript

Chapter 7: Web Feeds and Social Bookmarking

Chapter 8: Black Hat SEO

Chapter 9: Sitemaps

Chapter 10: Link Bait

Chapter 11: Cloaking, Geo-Targeting, and IP Delivery

Chapter 12: Foreign Language SEO

Chapter 13: Coping with Technical Issues

Chapter 14: Case Study: Building an E-Commerce Store

Chapter 15: Site Clinic: So You Have a Web Site?

Chapter 16: WordPress: Creating an SE-Friendly Blog

书名:Beginning CakePHP: From Novice to Professional

作者: David Golding

出版社:Apress

内容简介:引导您从基本设置CakePHP建立一个由应用程序,将突出CakePHP的功能和能力,没有深入钻研PHP语言,而是CakePHP框架可以提供的开发。 教你使用CakePHP把先进的功能集成到您的发展项目。

目录:

CHAPTER 1 Introduction . . . . . . . . . . . . . . . 1

PART 1 n n n Getting Started

CHAPTER 2 Installing and Running CakePHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

CHAPTER 3 Creating a To-Do List Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

PART 2 n n n Developing CakePHP Applications

CHAPTER 4 Naming Files and Designing the Database. . . . . . . . . . . . . . . . . . . . . . 29

CHAPTER 5 Creating Simple Views and Baking in the Console . . . . . . . . . . . . . . 55

CHAPTER 6 Customizing Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

CHAPTER 7 Working with Controllers and Models. . . . . . . . . . . . . . . . . . . . . . . . . . . 89

CHAPTER 8 Implementing Ajax Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

PART 3 n n n Advanced CakePHP

CHAPTER 9 Helpers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

CHAPTER 10 Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175

CHAPTER 11 Components and Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187

CHAPTER 12 Vendors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

CHAPTER 13 Plugins . . . . . . . . . . . . . . . . . . . . . . . . . 219n

CHAPTER 14 DataSources and Behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241

CHAPTER 15 Wrapping Up the Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

PART 4 n n n Appendixes

APPENDIX A Installation Issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281

APPENDIX B How CakePHP Compares with Other Frameworks. . . . . . . . . . . . . . 289

INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295

书名:PHP and MySQL: Create - Modify - Reuse

出版社:Wrox

内容简介:在真实的应用与实际的信息和循序渐进的过程中学习PHP,在PHP和MySQL :创建-修改-重用。作者与时并进开发Web任务,将引导您通过几个项目的完成,测试,并准备付诸实施,这样您就可以了解各方面的设计,如便携性,设计流程,并融合,并成为精通解决的问题专家,开发商所面临的日常情况.

目录:

Introduction ........................................................................................................... xi

Chapter 1: User Registration ...........................................................................1

Chapter 2: Community Forum ........................................................................31

Chapter 3: Mailing List .................................................................................63

Chapter 4: Search Engine .............................................................................87

Chapter 5: Personal Calendar ......................................................................113

Chapter 6: Ajax File Manager ......................................................................137

Chapter 7: Online Photo Album ...................................................................177

Chapter 8: Shopping Cart ...........................................................................195

Chapter 9: Web Site Statistics ....................................................................239

Chapter 10: News/Blog System ..................................................................265

Chapter 11: Shell Scripts ............................................................................291

Chapter 12: Security and Logging ...............................................................315

Index .........................................................................................................333

原书名: PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide

中文书名:PHP 6与MySQL 5基础教程

作者: Larry Ullman

页数: 512

内容简介:本书是一部经典的入门级著作,采用基于任务的方法来讲授PHP 和MySQL,使用大量图片指导读者深入学习语言,并向读者展示了如何构造动态Web 站点。书中用简洁、直观的步骤和讲解提供了学习任务和概念的最快方式。通过学习本书,读者可以快速、高效地掌握PHP 和MySQL,成为一位构建Web 站点的高手。

本书适合初中级Web 应用开发和设计人员阅读。

目录:

Introduction: ix

What Are Dynamic Web Sites? . . . . . . . . . . . . . . . . x

What You’ll Need . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi

About This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii

Companion Web Site . . . . . . . . . . . . . . . . . . . . . . . . xix

Chapter 1: Introduction to PHP 1

Basic Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Sending Data to the

Web Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Writing Comments . . . . . . . . . . . . . . . . . . . . . . . . . . 10

What Are Variables? . . . . . . . . . . . . . . . . . . . . . . . . . 14

Introducing Strings . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Concatenating Strings . . . . . . . . . . . . . . . . . . . . . . . 21

Introducing Numbers . . . . . . . . . . . . . . . . . . . . . . . . 23

Introducing Constants . . . . . . . . . . . . . . . . . . . . . . . 27

Single vs. Double Quotation Marks . . . . . . . . . . . . 30

Chapter 2: Programming with PHP 33

Creating an HTML Form . . . . . . . . . . . . . . . . . . . . . 34

Handling an HTML Form . . . . . . . . . . . . . . . . . . . . 38

Conditionals and Operators . . . . . . . . . . . . . . . . . . 42

Validating Form Data . . . . . . . . . . . . . . . . . . . . . . . . 46

Introducing Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . 52

For and While Loops . . . . . . . . . . . . . . . . . . . . . . . . 70

Chapter 3: Creating Dynamic Web Sites 73

Including Multiple Files . . . . . . . . . . . . . . . . . . . . . . 74

Handling HTML Forms, Revisited . . . . . . . . . . . . . 84

Making Sticky Forms . . . . . . . . . . . . . . . . . . . . . . . . 89

Creating Your Own Functions . . . . . . . . . . . . . . . . 92

Chapter 4: Introduction to MySQL 107

Naming Database Elements . . . . . . . . . . . . . . . . . 108

Choosing Your Column Types . . . . . . . . . . . . . . . 110

Choosing Other Column Properties . . . . . . . . . . 114

Accessing MySQL . . . . . . . . . . . . . . . . . . . . . . . . . . 116

Chapter 5: Introduction to SQL 123

Creating Databases and Tables . . . . . . . . . . . . . . . 124

Inserting Records . . . . . . . . . . . . . . . . . . . . . . . . . . . 127

Selecting Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131

Using Conditionals . . . . . . . . . . . . . . . . . . . . . . . . . 133

Using LIKE and NOT LIKE . . . . . . . . . . . . . . . . . . 136

Sorting Query Results . . . . . . . . . . . . . . . . . . . . . . . 138

Limiting Query Results . . . . . . . . . . . . . . . . . . . . . 140

Updating Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

Deleting Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144

Using Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146

Chapter 6: Advanced SQL and MySQL 157

Database Design . . . . . . . . . . . . . . . . . . . . . . . . . . . 158

Performing Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

Grouping Selected Results . . . . . . . . . . . . . . . . . . . 178

Creating Indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . 180

Using Different Table Types . . . . . . . . . . . . . . . . . 185

Performing FULLTEXT Searches . . . . . . . . . . . . 188

Performing Transactions . . . . . . . . . . . . . . . . . . . . 194

Chapter 7: Error Handling and Debugging 199

Error Types and Basic Debugging . . . . . . . . . . . . 200

Displaying PHP Errors . . . . . . . . . . . . . . . . . . . . . . 206

Adjusting Error Reporting in PHP . . . . . . . . . . . . 208

Creating Custom Error Handlers . . . . . . . . . . . . . 211

PHP Debugging Techniques . . . . . . . . . . . . . . . . . 216

SQL and MySQL Debugging Techniques . . . . . . 220

Chapter 8: Using PHP with MySQL 223

Modifying the Template . . . . . . . . . . . . . . . . . . . . . 224

Connecting to MySQL . . . . . . . . . . . . . . . . . . . . . . 226

Executing Simple Queries . . . . . . . . . . . . . . . . . . . 230

Retrieving Query Results . . . . . . . . . . . . . . . . . . . . 239

Ensuring Secure SQL . . . . . . . . . . . . . . . . . . . . . . . 243

Counting Returned Records . . . . . . . . . . . . . . . . . 249

Updating Records with PHP . . . . . . . . . . . . . . . . . 251

Chapter 9: Common Programming Techniques 259

Sending Values to a Script . . . . . . . . . . . . . . . . . . . 260

Using Hidden Form Inputs . . . . . . . . . . . . . . . . . . 264

Editing Existing Records . . . . . . . . . . . . . . . . . . . . 270

Paginating Query Results . . . . . . . . . . . . . . . . . . . . 277

Making Sortable Displays . . . . . . . . . . . . . . . . . . . 285

Chapter 10: Web Application Development 291

Sending Email . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292

Date and Time Functions . . . . . . . . . . . . . . . . . . . 298

Handling File Uploads . . . . . . . . . . . . . . . . . . . . . . 302

PHP and JavaScript . . . . . . . . . . . . . . . . . . . . . . . . . 315

Understanding HTTP Headers . . . . . . . . . . . . . . . 322

Chapter 11: Cookies and Sessions 327

Making a Login Page . . . . . . . . . . . . . . . . . . . . . . . 328

Making the Login Functions . . . . . . . . . . . . . . . . 331

Using Cookies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336

Using Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349

Improving Session Security . . . . . . . . . . . . . . . . . . 358

Chapter 12: Security Methods 361

Preventing Spam . . . . . . . . . . . . . . . . . . . . . . . . . . . 362

Validating Data by Type . . . . . . . . . . . . . . . . . . . . . 369

Preventing XSS Attacks . . . . . . . . . . . . . . . . . . . . . 374

Preventing SQL Injection Attacks . . . . . . . . . . . . 377

Database Encryption . . . . . . . . . . . . . . . . . . . . . . . 383

Chapter 13: Perl-Compatible

Regular Expressions 389

Creating a Test Script . . . . . . . . . . . . . . . . . . . . . . . 390

Defining Simple Patterns . . . . . . . . . . . . . . . . . . . . 394

Using Quantifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . 397

Using Character Classes . . . . . . . . . . . . . . . . . . . . . 400

Finding All Matches . . . . . . . . . . . . . . . . . . . . . . . . 403

Using Modifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407

Matching and Replacing Patterns . . . . . . . . . . . . 409

Chapter 14: Making Universal Sites 413

Character Sets and Encoding . . . . . . . . . . . . . . . . 414

Creating Multilingual Web Pages . . . . . . . . . . . . . 416

Unicode in PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420

Collation in PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . 424

Transliteration in PHP . . . . . . . . . . . . . . . . . . . . . . 427

Languages and MySQL . . . . . . . . . . . . . . . . . . . . . 430

Time Zones and MySQL . . . . . . . . . . . . . . . . . . . . 434

Working with Locales . . . . . . . . . . . . . . . . . . . . . . . 437

Chapter 15: Example—Message Board 441

Making the Database . . . . . . . . . . . . . . . . . . . . . . . 442

Writing the Templates . . . . . . . . . . . . . . . . . . . . . . 451

Creating the Index Page . . . . . . . . . . . . . . . . . . . . . 460

Creating the Forum Page . . . . . . . . . . . . . . . . . . . . 461

Creating the Thread Page . . . . . . . . . . . . . . . . . . . 466

Posting Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . 471

Chapter 16: Example—User Registration 483

Creating the Templates . . . . . . . . . . . . . . . . . . . . . 484

Writing the Configuration Scripts . . . . . . . . . . . . 490

Creating the Home Page . . . . . . . . . . . . . . . . . . . . 498

Registration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 500

Activating an Account . . . . . . . . . . . . . . . . . . . . . . 509

Logging In and Logging Out . . . . . . . . . . . . . . . . . 513

Password Management . . . . . . . . . . . . . . . . . . . . . 519

Chapter 17: Example—E-Commerce 529

Creating the Database . . . . . . . . . . . . . . . . . . . . . . 530

The Administrative Side . . . . . . . . . . . . . . . . . . . . 536

Creating the Public Template . . . . . . . . . . . . . . . . 553

The Product Catalog . . . . . . . . . . . . . . . . . . . . . . . . 557

The Shopping Cart . . . . . . . . . . . . . . . . . . . . . . . . . 569

Recording the Orders . . . . . . . . . . . . . . . . . . . . . . . 579

Appendix A: Installation 587

Installation on Windows . . . . . . . . . . . . . . . . . . . . 588

Installation on Mac OS X . . . . . . . . . . . . . . . . . . . 591

MySQL Permissions . . . . . . . . . . . . . . . . . . . . . . . . 594

Testing Your Installation . . . . . . . . . . . . . . . . . . . . 598

Configuring PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . 601

Index 603

书名:The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition

作者:Ben Balbo,Harry Fuecks,Davey Shafik,Ligaya Turmelle,Matthew Weier O’Phinney

出版社:Sitepoint

页数:520

图书目录:

Chapter 1: Introduction

A run-down of PHP’s class syntax, as well as a primer that explains how all the key elements of the object oriented paradigm apply to PHP are included in this chapter.

Chapter 2: Using Databases with PDO

Everything you’ll need to get up to speed with the PHP Data Objects (PDO) extension is covered here.

Chapter 3: Strings

String functions you can’t live without, along with an exploration of the processes for validating and filtering user-submitted content are the topics of this chapter.

Chapter 4: Dates and Times

Use PHP’s date functions, and implement an online calendar. You’ll also obtain a solid grounding in the storage and manipulation of dates in MySQL.

Chapter 5: Forms, Tables, and Pretty URLs

The essentials of web page forms and tables are covered here as is the process for developing forms with PEAR::HTML_QuickForm.

Chapter 6: Working with Files

This survival guide to working with files in PHP shows how to create your own zipped archives with PEAR::Archive_Tar, and explains the use of the Standard PHP Library.

Chapter 7: Email

Deal specifically with email-related solutions as this chapter shows you how to take full advantage of email with PHP.

Chapter 8: Images

Watermark images on your site, prevent hotlinking from other sites, create an image gallery complete with Exif data, and produce a few professional charts and graphs—as well as CAPTCHA images—with JpGraph.

Chapter 9: Error Handling

Understand PHP’s error reporting mechanism, and learn how to take advantage of PHP’s custom error handling features

书名:PHP & MySQL Web Development All-in-One Desk Reference For Dummies

作者:Janet Valade, Bill Ballad ,Tricia Ballad

页数:622

ISBN: 978-0-470-16777-9

内容简介:

如果你要构建一个动态网站,PHP和mysql是最佳组合,本书是一种一站式的来启动并运行这些工具,把他们很好的利用到您的商业网站中。它分为6个方面:涵盖设定您的开发环境, PHP编程,使用MySQL ,安全, PHP扩展,PHPWeb应用程序。他们可以很容易地创建一个网站,访问者可以登录,使用购物车,完成形式,网上购物等等。

目录:

Introduction .................................................................1

Book I: Setting Up Your Environment .............................7

Chapter 1: Setting Up Your Web Environment................................................................9

Chapter 2: Installing PHP.................................................................................................21

Chapter 3: Setting Up the MySQL Environment ...........................................................47

Chapter 4: Installing a Web Server .................................................................................73

Chapter 5: Setting Up Your Web Development Environment

with the XAMPP Package ..............................................................................................87

Book II: PHP Programming........................................101

Chapter 1: PHP Basics....................................................................................................103

Chapter 2: Building PHP Scripts ...................................................................................151

Chapter 3: PHP and Your Operating System...............................................................197

Chapter 4: Object-Oriented Programming ..................................................................229

Book III: Using MySQL .............................................257

Chapter 1: Introducing MySQL .....................................................................................259

Chapter 2: Administering MySQL.................................................................................269

Chapter 3: Designing and Building a Database...........................................................295

Chapter 4: Using the Database .....................................................................................319

Chapter 5: Communicating with the Database from PHP Scripts ............................343

Book IV: Security......................................................357

Chapter 1: General Security Considerations...............................................................359

Chapter 2: An Overview of Authentication and Encryption .....................................373

Chapter 3: Creating a Secure Environment .................................................................383

Chapter 4: Programming Securely in PHP...................................................................397

Chapter 5: Programming Secure E-Commerce Applications.....................................409

Book V: PHP Extensions ............................................421

Chapter 1: Introduction to Extensions ........................................................................423

Chapter 2: Using PEAR...................................................................................................429

Chapter 3: Using the XML Extension ...........................................................................441

Chapter 4: Manipulating Images with the GD Extension ...........................................449

Chapter 5: Mail Extensions............................................................................................459

Book VI: PHP Web Applications.................................467

Chapter 1: Building and Processing Dynamic Forms.................................................469

Chapter 2: Making Information Available on Multiple Web Pages ...........................511

Chapter 3: Building a Login Application......................................................................533

Chapter 4: Building an Online Catalog.........................................................................555

Chapter 5: Building a Shopping Cart............................................................................571

Index .......................................................................617

书名:Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition

作者: Emilian Balanescu , Cristian Darie

出版社:Apress

页数:707

内容简介:Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition涵盖创建动态,强有力,可扩展的电子商务网站每一步,基于一个真实的案例,在本书中你将学到怎样管理产品目录,创建和集成购物车,创建用户账户等等一系列开发过程。

目录:

PART 1■ ■ ■ Phase I of Development

CHAPTER 1 Starting an E-Commerce Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

CHAPTER 2 Laying Out the Foundations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

CHAPTER 3 Starting the TShirtShop Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

CHAPTER 4 Creating the Product Catalog: Part 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

CHAPTER 5 Creating the Product Catalog: Part 2. . . . . . . . . . . . . . . . . . . . . . . . . . . 113

CHAPTER 6 Product Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175

CHAPTER 7 Search Engine Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189

CHAPTER 8 Searching the Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221

CHAPTER 9 Receiving Payments Using PayPal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249

CHAPTER 10 Catalog Administration: Departments and Categories . . . . . . . . . . 267

CHAPTER 11 Catalog Administration: Products and Attributes . . . . . . . . . . . . . . . 305

PART 2■ ■ ■ Phase II of Development

CHAPTER 12 Creating Your Own Shopping Cart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363

CHAPTER 13 Implementing AJAX Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399

CHAPTER 14 Accepting Customer Orders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431

CHAPTER 15 Product Recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461

PART 3■ ■ ■ Phase III of Development

CHAPTER 16 Managing Customer Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477

CHAPTER 17 Storing Customer Orders. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543

CHAPTER 18 Implementing the Order Pipeline: Part 1 . . . . . . . . . . . . . . . . . . . . . . . 569

CHAPTER 19 Implementing the Order Pipeline: Part 2 . . . . . . . . . . . . . . . . . . . . . . . 593

CHAPTER 20 Processing Credit Card Transactions . . . . . . . . . . . . . . . . . . . . . . . . . . 623

CHAPTER 21 Product Reviews. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655

CHAPTER 22 Using Amazon.com Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665

INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 689

书名:PHP Object-Oriented Solutions

作者:David Powers

出版社:Apress

页数:392

内容简介:本书中是介绍面向对象编程( OOP ) ,不会覆盖你复杂的理论。它教你的重要的基本的OOP ,您需要知道之前到更先进的水平,并包括了一系列的预先包装的脚本,您可以将用最少的努力集成到你现有的网站。

通过通过一系列简单的项目,显示了如何面向对象可用于创建可重用和可移植代码。该项目采用了各种各样的事情开发商遇到了每一天,并包括一个校验器的过滤用户输入,一个简单的日期类,避免了需要记住所有的深奥格式代码PHP中,和一个XML发生器

目录:

Chapter 1: Why Object-Oriented PHP?. . . . . . . . . . . . . . . . . . . . . . . 3

Chapter 2: Writing PHP Classes. . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Chapter 3: Taking the Pain Out of Working with Dates . . . . . . . . 77

Chapter 4: Using PHP Filters to Validate User Input . . . . . . . . . . 121

Chapter 5: Building a Versatile Remote File Connector . . . . . . . 169

Chapter 6: SimpleXML—Couldn’t Be Simpler . . . . . . . . . . . . . . . 207

Chapter 7: Supercharged Looping with SPL . . . . . . . . . . . . . . . . . 251

Chapter 8: Generating XML from a Database . . . . . . . . . . . . . . . 289

Chapter 9: Case Study: Creating Your Own RSS Feed . . . . . . . . . 321

Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355

书名:PHP Solutions:Dynamic Web Design Made Easy

作者:David Powers

出版社:Apress

页数:488

目录:•Chapter 1: What Is PHP—And Why Should I Care?

•Chapter 2: Getting Ready to Work with PHP

•Chapter 3: How to Write PHP Scripts

•Chapter 4: Lightening Your Workload with Includes

•Chapter 5: Bringing Forms to Life

•Chapter 6: Uploading Files

•Chapter 7: Using PHP to Manage Files

•Chapter 8: Generating Thumbnail Images

•Chapter 9: Pages That Remember: Simple Login and Multipage Forms

•Chapter 10: Setting Up MySQL and phpMyAdmin

•Chapter 11: Getting Started with a Database

•Chapter 12: Creating a Dynamic Online Gallery

•Chapter 13: Managing Content

•Chapter 14: Solutions to Common PHP/MySQL Problems

•Chapter 15: Keeping Intruders at Bay

书名:PHP Web 2.0 Mashup Projects

作者:Shu-Wai Chow

出版社:Packt

页数:280

ISBN:184719088X

简介:mashup是一个结合两个或两个以上的外部在线资源于一体的网页或应用程序。这本书是您的入口的世界混搭和Web 2.0 。您将创建的PHP项目,获取数据从一个地方的网站,查看所有相关资料从另一个地方,目前它在一个单一的应用程序。

这本书是由5个真实世界的PHP项目。每一个项目开始,概述了技术和议定书所需要的项目,然后一跳,插入所使用的工具和详细的创建项目。

目录:

Chapter 1: Introduction to Mashups

Chapter 2: Buy it on Amazon

Chapter 3: Make Your Own Search Engine

Chapter 4: Your Own Video Jukebox

Chapter 5: Traffic Incidents via SMS

Chapter 6: London Tube Photos

书名:architect's Guide to Programming with Zend Framework

作者:Cal Evans

页数:222

ISBN-13:978-0-9738621-5-7

内容简介:

这本书涵盖的大部分主要功能由Zend FrameWork,并运作良好作为全面介绍了其使用和作为参考更高级别的任务。该书的内容包括:

Getting started

The Model

The Controller

The View

Data access

Web services

Authorizations

Exceptions and error management

Rich Internet Applications

Hacking the framework: secret classes and advanced functionality

Framework internals

Tips & tricks

The new Zend_Layout classes

书名:Pro PHP: Patterns, Frameworks, Testing and More

作者: Kevin McArthur

出版社:Apress

页数:330

内容简介:随着Ajax和Web服务的成功至关重要当今Web应用程序,这本书的最后几个章节涵盖简称JSON ,对SOAP扩展,以及先进的网络服务的主题。

如果您选择寻求超越的基本知识,Pro PHP是这本书适合您。

目录:

PART 1 ■ ■ ■ OOP and Patterns

CHAPTER 1 Abstract Classes, Interfaces, and Programming by Contract . . . . . 3

CHAPTER 2 Static Variables, Members, and Methods . . . . . . . . . . . . . . . . . . . . . . 11

CHAPTER 3 Singleton and Factory Patterns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

CHAPTER 4 Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

CHAPTER 5 What's New in PHP 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

PART 2 ■ ■ ■ Testing and Documentation

CHAPTER 6 Documentation and Coding Conventions . . . . . . . . . . . . . . . . . . . . . . 55

CHAPTER 7 Reflection API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

CHAPTER 8 Testing, Deployment, and Continuous Integration . . . . . . . . . . . . . 105

PART 3 ■ ■ ■ The Standard PHP Library (SPL)

CHAPTER 9 Introduction to SPL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127

CHAPTER 10 SPL Iterators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143

CHAPTER 11 SPL File and Directory Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163

CHAPTER 12 SPL Array Overloading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179

CHAPTER 13 SPL Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189

PART 4 ■ ■ ■ The Model-View-Controller

(MVC) Pattern

CHAPTER 14 MVC Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201

CHAPTER 15 Introduction to the Zend Framework . . . . . . . . . . . . . . . . . . . . . . . . . 215

CHAPTER 16 Advanced Zend Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235

CHAPTER 17 The Zend Framework Applied . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259

PART 5 ■ ■ ■ Web 2.0

CHAPTER 18 Ajax and JSON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

CHAPTER 19 Introduction to Web Services with SOAP . . . . . . . . . . . . . . . . . . . . . 285

CHAPTER 20 Advanced Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299

CHAPTER 21 Certificate Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313

INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329

书名:Pro PHP Security

作者:Chris Snyder , Michael Southwell

出版社:Apress

页数:528

ISBN10: 1-59059-508-4

ISBN13: 978-1-59059-508-4

内容简介:这是一本专注于PHP安全方面的书籍,这将作为您的完整的指南,并采取积极主动的安全防御措施保护你的网站免受攻击,例如,创建和部署“ captchas ”验证电子邮件,抵御SQL注入攻击,防止跨站点脚本尝试等等一些列安全措施。

目录:

PART 1 ■ ■ ■ The Importance of Security

CHAPTER 1 Why Is Secure Programming a Concern? . . . . . . . . . . . . . . . . . . . . . . . 3

PART 2 ■ ■ ■ Maintaining a Secure Environment

CHAPTER 2 Dealing with Shared Hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

CHAPTER 3 Maintaining Separate Development and Production

Environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

CHAPTER 4 Keeping Software Up to Date . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

CHAPTER 5 Using Encryption I: Theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55

CHAPTER 6 Using Encryption II: Practice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

CHAPTER 7 Securing Network Connections I: SSL . . . . . . . . . . . . . . . . . . . . . . . . 109

CHAPTER 8 Securing Network Connections II: SSH . . . . . . . . . . . . . . . . . . . . . . . 139

CHAPTER 9 Controlling Access I: Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . 175

CHAPTER 10 Controlling Access II: Permissions and Restrictions . . . . . . . . . . . 209

PART 3 ■ ■ ■ Practicing Secure PHP Programming

CHAPTER 11 Validating User Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229

CHAPTER 12 Preventing SQL Injection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249

CHAPTER 13 Preventing Cross-Site Scripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263

CHAPTER 14 Preventing Remote Execution. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281

CHAPTER 15 Enforcing Security for Temporary Files . . . . . . . . . . . . . . . . . . . . . . . 303

CHAPTER 16 Preventing Session Hijacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315

PART 4 ■ ■ ■ Practicing Secure Operations

CHAPTER 17 Allowing Only Human Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331

CHAPTER 18 Verifying Your Users’ Identities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347

CHAPTER 19 Using Roles to Authorize Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359

CHAPTER 20 Adding Accountability to Track Your Users. . . . . . . . . . . . . . . . . . . . 377

CHAPTER 21 Preventing Data Loss. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399

CHAPTER 22 Safely Executing System Commands . . . . . . . . . . . . . . . . . . . . . . . . . 419

CHAPTER 23 Handling Remote Procedure Calls Safely . . . . . . . . . . . . . . . . . . . . . 455

CHAPTER 24 Taking Advantage of Peer Review. . . . . . . . . . . . . . . . . . . . . . . . . . . . 467

INDEX. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479

书名:Smarty PHP Template Programming and Applications

作者:Hasin Hayder, Joao Prado Maia, Lucian Gheorghe

出版社:packt

页数:251

内容简介:Smarty是PHP的模板引擎,在Smarty引擎使代码和模板在一起。所有的结果是,设计人员可以专注于设计,程序员可以专注于编程,他们并不需要了解到对方的设计方式。

假如您正在制定自己的网站, Smarty是一个功能强大的方法,使您的代码更清楚地向你和其他人表示,以及更容易调试和修改。

目录:

Chapter 1: Introduction to Smarty

Chapter 2: Smarty Site Architecture

Chapter 3: What Designers Need to Know

Chapter 4: Creating a Template

Chapter 5: Advanced Templating

Chapter 6: Smarty Functions

Chapter 7: Debugging for Designers

Chapter 8: Built-in Smarty Variables and Methods

Chapter 9: Caching and Performance

Chapter 10: Extending Smarty with Plug-ins

Chapter 11: Filters

Chapter 12: Internationalization

Index

英文书名: Beginning PHP and MySQL 5: From Novice to Professional

中文书名:PHP与MySQL 5程序设计(第2版)

作者:W.Jason Gilmore

页数:859

内容简介:本书全面介绍PHP脚本语言和MySQL数据库这两种目前最流行的开源软件,主要内容包括PHP和MySQL基本概念、PHP扩展与应用库、日期和时间功能、PHP数据对象扩展、PHP的mysqli扩展、MySQL 5的存储例程、触发器和视图等。本书实用性强,帮助读者学习PHP编程语言和MySQL数据库服务器的最佳实践,了解如何结合这些卓越的技术创建数据库驱动的动态Web应用程序。

本书适合于Web开发的新手阅读,也适合作为各层次PHP和MySQL开发人员的参考书。目录:

CHAPTER 1 An Introduction to PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

CHAPTER 2 Installing and Configuring Apache and PHP . . . . . . . . . . . . . . . . . . . . . 9

CHAPTER 3 PHP Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

CHAPTER 4 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91

CHAPTER 5 Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

CHAPTER 6 Object-Oriented PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

CHAPTER 7 Advanced OOP Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157

CHAPTER 8 Error and Exception Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177

CHAPTER 9 Strings and Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191

CHAPTER 10 Working with the File and Operating System . . . . . . . . . . . . . . . . . 229

CHAPTER 11 PEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259

CHAPTER 12 Date and Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271

CHAPTER 13 Forms and Navigational Cues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303

CHAPTER 14 Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325

CHAPTER 15 Handling File Uploads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345

CHAPTER 16 Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359

CHAPTER 17 PHP and LDAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399

CHAPTER 18 Session Handlers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425

CHAPTER 19 Templating with Smarty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447

CHAPTER 20 Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473

CHAPTER 21 Secure PHP Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 515

CHAPTER 22 SQLite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535

CHAPTER 23 Introducing PDO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555

CHAPTER 24 Introducing MySQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573

CHAPTER 25 Installing and Configuring MySQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581

CHAPTER 26 The Many MySQL Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 607

CHAPTER 27 MySQL Storage Engines and Datatypes . . . . . . . . . . . . . . . . . . . . . . 631

CHAPTER 28 Securing MySQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 661

CHAPTER 29 PHP’s MySQL Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 689

CHAPTER 30 PHP’s mysqli Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719

CHAPTER 31 Stored Routines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 745

CHAPTER 32 MySQL Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 767

CHAPTER 33 Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 779

CHAPTER 34 Practical Database Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 793

CHAPTER 35 Indexes and Searching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 817

CHAPTER 36 Transactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831

CHAPTER 37 Importing and Exporting Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 845

INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 859

英文书名: PHP 5 Recipes: A Problem-Solution Approach

中文书名:PHP 5范例代码查询辞典

作者: Lee Babin, Nathan A.Good, Frank M.Kromann, Jon Stephens

页数: 631

内容简介:本书几乎在PHP 5的所有重要方面都提供了有用的参考,不仅包括先前版本中已经非常成熟的原有特性,而且还包括PHP 5中引入的新特性。比如,基本的PHP语法(数据类型、类、对象、接口、数组、数学运算)、日期和时间处理、字符串处理、文件与目录处理、动态图像处理、正则表达式、变量处理、标记处理、MySQLi数据库扩展、Web基础,等等。书中有大量的实例解决方案,包含大量实用的代码片段,你可以直接复制它们,然后粘贴到自己的应用程序中,从而大大节约编码时间。

无论你是刚入门的初学者,还是有多年开发经验的资深开发者,在你的PHP 旅途中,本书都会是一位有用而且受欢迎的伙伴。当你遇到任何PHP方面的难题时,它会告诉你想要的答案。

目录:

CHAPTER 1 Overview of PHP Data Types and Concepts . . . . . . . . . . . . . . . . . . . . . . 1

CHAPTER 2 Overview of Classes, Objects, and Interfaces . . . . . . . . . . . . . . . . . . . 21

CHAPTER 3 Performing Math Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

CHAPTER 4 Working with Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

CHAPTER 5 Working with Dates and Times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197

CHAPTER 6 Working with Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265

CHAPTER 7 Working with Files and Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291

CHAPTER 8 Working with Dynamic Imaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321

CHAPTER 9 Using Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351

CHAPTER 10 Working with Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393

CHAPTER 11 Using Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437

CHAPTER 12 Understanding Web Basics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453

CHAPTER 13 Creating and Using Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487

CHAPTER 14 Working with Markup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513

CHAPTER 15 Using MySQL Databases in PHP 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551

CHAPTER 16 Communicating with Internet Services . . . . . . . . . . . . . . . . . . . . . . . . 597

INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 631

书名:Practical PHP and MySQL : building eight dynamic web applications

作者:Jono Bacon

ISBN 0-13-223997-3

出版社:Pearson Education

出版日期;November 2006

目录:

CHAPTER 1 A New Approach. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

The Technology. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

How the Dynamic Web Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

CHAPTER 2 Getting Started with PHP and MySQL . . . . . . . . . . . . . 15

Setting Up PHP and MySQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

Getting Started with PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Rolling in MySQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

Connecting to MySQL in PHP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51

CHAPTER 3 Running the Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . 53

About the Disc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53

Running the Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

Using XAMPP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

CHAPTER 4 Building a Weblog. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

Project Overview: Blogtastic Use Case . . . . . . . . . . . . . . . . . . . . . . 64

Building the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

Starting to Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

Viewing Specific Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

Building the Category Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92

Don’t Just Let Anyone Log In . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95

Rolling Your Own Categories . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

Creating New Blog Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

Update a Blog Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

CHAPTER 5 Discussion Forums . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

Under the Hood . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

Building Your Own Forums. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

Creating the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

Creating the Site Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122

Displaying the Forums . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

Managing User Logins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

Posts and Replies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150

Creating Administrator-Specific Pages . . . . . . . . . . . . . . . . . . . . . 158

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167

CHAPTER 6 Creating a Shopping Cart . . . . . . . . . . . . . . . . . . . . . . 169

Project Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170

Building the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171

Starting to Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175

Managing User Logins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180

Displaying and Selecting Products . . . . . . . . . . . . . . . . . . . . . . . . 184

Checking It Out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196

Administrator Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216

CHAPTER 7 Building an Online Auction Site. . . . . . . . . . . . . . . . . . 219

Project Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219

Building the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220

Starting to Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223

Displaying Auction Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226

Dealing with Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240

Adding an Item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243

Processing Auctions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259

Scheduling the Page to Be Run . . . . . . . . . . . . . . . . . . . . . . . . . . . 262

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263

CHAPTER 8 Creating a Web-Based Calendar . . . . . . . . . . . . . . . . . 265

Project Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265

Building the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266

Starting to Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267

Viewing Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302

CHAPTER 9 FAQ Content Management System . . . . . . . . . . . . . . . 303

Project Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304

Building the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305

Starting to Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310

Displaying Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321

Dealing with Logins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330

Adding and Moderating Questions . . . . . . . . . . . . . . . . . . . . . . . 341

Managing Subjects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356

Managing Topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360

Subject Ownership . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376

CHAPTER 10 Building a Re-Usable Project . . . . . . . . . . . . . . . . . . . . 379

Project Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380

Building the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381

Using Directories Intelligently . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385

Starting to Code: Building the Backbone . . . . . . . . . . . . . . . . . . . 386

Downloading Releases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393

Viewing Screenshots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396

Available Projects Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397

Administering Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398

Changing General Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406

Managing Downloads. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407

Deleting Releases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414

Managing Screenshots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415

Deleting Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419

Adding a New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420

Deploying the Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424

CHAPTER 11 Building a News Web Site . . . . . . . . . . . . . . . . . . . . . . 425

Project Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425

Installing PEAR Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426

Building the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428

Starting to Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431

Handling User Logins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440

Viewing and Rating Stories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445

Managing Stories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 451

Managing Categories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457

Creating Your Search Engine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467

APPENDIX A Web Site Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469

Project Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469

Laying Out the Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471

Starting to Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474

Start Building the Stylesheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479

Formatting the Main <div> Items . . . . . . . . . . . . . . . . . . . . . . . . . 481

Creating an About Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487

Creating a Frequently Asked Questions Page . . . . . . . . . . . . . . . . 489

Formatting Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 495

Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499

中文书名:php和mysql web开发(第四版)

英文书名:PHP and MySQL Web Development,Fourth Edition

作者:Luke Welling,Laura Thomson

ISBN-10: 0-672-32916-6

ISBN-13: 978-0-672-32916-6

出版日期: 2009

目录:

I Using PHP

1 PHP Crash Course 13

2 Storing and Retrieving Data 59

3 Using Arrays 81

4 String Manipulation and Regular Expressions 107

5 Reusing Code and Writing Functions 133

6 Object-Oriented PHP 159

7 Error and Exception Handling 193

II Using MySQL

8 Designing Your Web Database 207

9 Creating Your Web Database 219

10 Working with Your MySQL Database 243

11 Accessing Your MySQL Database from the Web

with PHP 267

12 Advanced MySQL Administration 287

13 Advanced MySQL Programming 311

III E-commerce and Security

14 Running an E-commerce Site 327

15 E-commerce Security Issues 341

16 Web Application Security 361

17 Implementing Authentication with PHP and

MySQL 391

18 Implementing Secure Transactions with PHP and MySQL 409

IV Advanced PHP Techniques

19 Interacting with the File System and the Server

431

20 Using Network and Protocol Functions 451

21 Managing the Date and Time 469

22 Generating Images 483

23 Using Session Control in PHP 509

24 Other Useful Features 525

V Building Practical PHP and MySQL Projects

25 Using PHP and MySQL for Large Projects 535

26 Debugging 551

27 Building User Authentication and Personalization

569

28 Building a Shopping Cart 607

29 Building a Web-Based Email Service 651

30 Building a Mailing List Manager 687

31 Building Web Forums 741

32 Generating Personalized PDF Documents 771

33 Connecting to Web Services with XML and SOAP

807

34 Building Web 2.0 Applications with Ajax 855

VI Appendixes

A Installing PHP and MySQL 889

B Web Resources 907

Index 911

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有