PHP Developer’s Dictionary
IT-SC book
5
Dedications
R. Allen Wyke
For Bryant, Emily, Alex, and Jaclyn (the newest edition) -
you all make me happy and proud to be an uncle.
Michael J. Walker
To Hien Do, who taught me what it means to work hard,
and what rewards come with it.
Robert Cox
To Kaitlin and Austin, the best things that could happen to
a daddy. I love you both.
PHP Developer’s Dictionary
IT-SC book
6
About the Authors
Acknowledgments
Tell Us What You Think!
Introduction
Who Should Buy This Book?
Organization of the Chapters
Writing Conventions
1. Basic PHP
Background and History
Advantages of PHP 4
Installation
Operators and Mathematical Functions
Functions, Classes, and Objects
2. Generating HTML
Generating Dynamic Content
Working with the Filesystem
HTTP Authentication
Working with Email
Calendar and Date Functions
3. Database Access
Working with Connections and Data Sources
Using PostgreSQL and PHP
Select, Insert, Update, and Delete Queries
Other Database Functions
4. The Core PHP 4 Language
Basic Syntax
5. PHP Language Extensions
Arbitrary-Precision Mathematics
Array
Dynamic Loading
Hash()
Mathematical
Miscellaneous
PHP Options and Information
String
Variable
6. Protocol Extensions
FTP
HTTP
IMAP, POP3, and NNTP
LDAP
SNMP
7. Internet-Related Extensions
PHP Developer’s Dictionary
IT-SC book
7
Apache Specific
Mail
Network
Session Handling
URL
VMailMgr
WDDX
8. Document-Related Extensions
Aspell
Pspell
ClibPDF
Forms Data Format
Hyperwave
PDF
XML Parser
9. System Extensions
Directory
Filesystem
NIS
POSIX
Program Execution
Semaphore and Shared Memory
10. Chapter Database Extensions
Database Abstraction Layer
dBASE
DBM
FilePro
Informix
InterBase
Microsoft SQL Server
mSQL
MySQL
ODBC
Oracle
Oracle 8
PostgreSQL
Sybase
11. Chapter Utility Extensions
Calendar
Compression
Date and Time
Encryption
GNU Recode
Image
Regular Expressions
12. PHP Compilation Options
Enable, Disable, and Help
With
PHP Developer’s Dictionary
IT-SC book
8
13. PHP Directives
General
Extension Loading
Browser Compatibility
Mail
Database
BC Math
Debugger
Safe Mode
Apache
PHP Developer’s Dictionary
IT-SC book
9
About the Authors
R. Allen Wyke
R. Allen Wyke, of Durham, North Carolina, is a Director of Product
Technology at Engage's Software division—a profile-driven, online
marketing solutions company. At Engage, he works with product
managers, product marketing, and engineering to ensure that products
have the proper vision and direction in both the online and offline
worlds. He is constantly working with XML, JavaScript, Perl, PHP, and
various other Internet technologies in implementing the online
marketing software and services that Engage has to offer.
He co-authored
JavaScript Unleashed, 3rd Edition
;
Pure JavaScript
;
The Perl 5 Programmer's Reference; and The Official Netscape
Navigator 4 Book
. He also contributed to two other titles on the topics
of Web development: HTML Publishing on the Internet, 2nd Edition
and The HTML 4 Programmer's Reference. In addition, he used to write
a weekly column about Windows and UNIX integration for ITworld.com
and wrote the monthly "Webmaster" column for SunWorld.
Michael J. Walker
Michael J. Walker, of Knightdale, North Carolina is a Senior Systems
Engineer for Engage, Inc. At Engage, he currently serves as a technical
resource for the field pre-sales engineers. His previous work with
Engage included heading the consulting and custom development
teams as well as being a developer of custom Web applications using
C/C++, HTML, JavaScript, and ODBC.
While at Engage, he has also provided consultation to many of the top-
tier Web sites in the U.S. and throughout the world. He has more than
ten years of computer industry experience in various roles, including
data processing operations, Internet software implementation, and
client/server development. He has developed software on many
platforms ranging from micro-controllers to mainframes, using
Assembly language, C/C++, SQL, Visual Basic, PowerBuilder, and
Java. He holds Bachelor of Science degrees in Theoretical Computer
Science and Electrical Engineering from Northern Illinois University.
Robert Cox
Robert Cox, originally from Winslow, Arizona and now residing in
Raleigh, North Carolina, is the Manager of Technical Support at Engage
Technologies. He is a graduate of Brigham Young University with a
Bachelor of Science degree in Electronics Engineering Technology. He
has a love of computers that dates back to 1980 when he continually
snuck out of his high school American History class to work on
programs in the local college computer lab.