作者:empty 页数:953 出版社:empty |
BeginningPHPandMySQL5:FromNovicetoProfessional, Second EditionCopyright O2006byW.Jason GilmoreAll rights reserved.No part of this wark maybe reproduced or transmitted in any form or by any means,aeionlcormechankainlding photo eop yin rec orig.or byanyinomanskraeorfenealya em wihout the prior wr ten perms son of the copy ngh towner and the publ sher
Printed and hound in the United States of America 987654321Trademarked names may appear in this book.Rather than use a trademark symbol with every oc eur renceof a trademarked name, we use the names only in an editoral fashion and to the benefit of the trademarkowner, with no intention of infringement of the trademark
Distributed to the bonk trade worldwide by Springer-Verlag NewYork, In e., 233 Spring Street, fth Floor,NewYork, NY 10013.Phone 1-80H-SPRINGER.fax 201-348-4505, e-mail orders-nye springer-sbn.con.orvisithttp://ww.springeronline.com.For information on translations, please contact A press directly at2560Ninth Street, Suite Z 19, Berkeley, CA94710.PhoneS 10-549-5930, fax S 10-549-5939, c-mail info fa press.com,orvisithttp://wha.apress.conThe information in this hook is distributed on an“as is*basis, without warranty-Although every precautionhas heen taken in the preparation of this work, neither the author lsl norA press shall have any liability toany person or entity with respect to any loss or damage caused or alleged to because d directly or indirectlyby the information conta ned in this work.Thesourcecndeforthisbookisavailabletoreadersathttp://mw.apress.conintheSourceCadesection.This book is cle dicated io the memory of Dr.Giovan nd“Nino Sanz i(1929-2004) .Addio, caro amico.
Installing and Configuring Apache and PHP.
PHP Basics.
Functions.
Arrays.
Object-Oriented PHP.
Advanced OOP Features
Error and Exception Handling.
Strings and Regular Expressions.
Working with the File and OperatingSystem.
PEAR.
DateandTime.
Forms and Navigational Cues.
Authentication
Handling File Uploads.
Networking.
PHP and LDAP.
Session Handlers.
Templating with Smarty.
WebServices.
Secure PHP Programming.
SQLite.
Introducing PD 0.
About the Author.
About the Technical Reviewer
Acknowledgments.
Introduction.
CHAPTER 1
CHAPTER 2
Introducing MySQL.
Installing and Configuring MySQL.
The Many MySQL Clients.
MySQL Storage Engines and Datatypes.
Securing MySQL.
PHP's MySQL Extension.
PHP's mysqli Extension.
Stored Routines.
MySQL Triggers.
Views.
Practical Database Queries
Indexes and Searching.
Transactions, .
Importing and Exporting Data.
An Introduction to PHP
History.
General Language Features.
Installing and Configuring Apache and PHP.
Prac ical ity.
Power.
Possib i ity.
Price.
Summary.
Installation.
Configuration.
Obtaining the Distributions.
The Installation Process.
Te sing Your Installation.
Customizing the Unix Build.
Customizing the Windows Build.
Common Pitfalls.
Viewing and Download ig the Documentation.
Managing PHP's Confi uration Direct i as.
PHP's Configuration Directives.
Summary.4
Del ault Syntax.,
Short-Tags.
Script.
ASP-Style.
Comments.
Embedding Multiple Code Blocks.
Single-lie C++Syntax.
Shell Syntax.
Multiple-Line C Syntax,
Output.
Datatypes.
Identifiers.
Variables.
Constants.
print 0.
echo 0.
printf 0.
sprintf 0.
Scalar Datatypes.
Compound Datatypes.
Special Datatypes.
TypeCasting.
Type Juggling.
Type-Related Func tons.
Type l denti fier Functions.
Variable Declaration.
Variable Scope.
PHP's Super global Variables
Variable Variables.
Expressions.
String Interpol a ion,
Control Stucture s.
Operands.
0perators.
Double Quotes.
Single Quotes.
Here doc.
Summary.
Execution Control Statements.
Conditional Statements.
Looping Statements.
File Inclusion Statements.
Functions.
Invoking a Function.
Creating a Funct on.
Function Libraries.
Pasig Arguments by Value.
Passing Arguments by Reference.
Default Argument Values.
Op lion al Arguments.
Re turing Values from a Function.
Nest ng Functions.
Recursive Functions.
Variable Functions.
Summary.
Arrays.
What Is an Array?.
Outputting Arrays.
Creating an Array.
Testing for an Array.
Adding and Removing Array Elements.
Locating Array Elements.
Traversing Arrays.
Determining ArraySize and Uniqueness.
Sorting Arrays.
Merging, Slicing, Splicing, and Dissecting Arrays.
Other Useful Array Functions.
Encapsulation, ,
Inheritance.
Polymorphism.
Classes.
Objects.
Fields.
Properties.
_set 0.
Constants.
Methods.
Constructors.
Destructors.
Summary.
Advanced OOP Features.
Advanced OOP Features Not Supported by PHP.
Object Cloning.
Inheritance.
Interfaces.
Abstract Classes.
Reflection.
Cloning Example.
The clone) Method.
Cla