Please consider the latest edition.
Programming PHP is a comprehensive guide to PHP, a simple yet powerful language for creating dynamic web content. Filled with the unique knowledge of the creator of PHP, Rasmus Lerdorf, this book is a detailed reference to the language and its applications, including such topics as form processing, sessions, databases, XML, and graphics. This book covers PHP 4.
-
Chapter 1 Introduction to PHP
-
What Does PHP Do?
-
A Brief History of PHP
-
Installing PHP
-
A Walk Through PHP
-
-
Chapter 2 Language Basics
-
Lexical Structure
-
Data Types
-
Variables
-
Expressions and Operators
-
Flow-Control Statements
-
Including Code
-
Embedding PHP in Web Pages
-
-
Chapter 3 Functions
-
Calling a Function
-
Defining a Function
-
Variable Scope
-
Function Parameters
-
Return Values
-
Variable Functions
-
Anonymous Functions
-
-
Chapter 4 Strings
-
Quoting String Constants
-
Printing Strings
-
Accessing Individual Characters
-
Cleaning Strings
-
Encoding and Escaping
-
Comparing Strings
-
Manipulating and Searching Strings
-
Regular Expressions
-
POSIX-Style Regular Expressions
-
Perl-Compatible Regular Expressions
-
-
Chapter 5 Arrays
-
Indexed Versus Associative Arrays
-
Identifying Elements of an Array
-
Storing Data in Arrays
-
Multidimensional Arrays
-
Extracting Multiple Values
-
Converting Between Arrays and Variables
-
Traversing Arrays
-
Sorting
-
Acting on Entire Arrays
-
Using Arrays
-
-
Chapter 6 Objects
-
Terminology
-
Creating an Object
-
Accessing Properties and Methods
-
Declaring a Class
-
Introspection
-
Serialization
-
-
Chapter 7 Web Techniques
-
HTTP Basics
-
Variables
-
Server Information
-
Processing Forms
-
Setting Response Headers
-
Maintaining State
-
SSL
-
-
Chapter 8 Databases
-
Using PHP to Access a Database
-
Relational Databases and SQL
-
PEAR DB Basics
-
Advanced Database Techniques
-
Sample Application
-
-
Chapter 9 Graphics
-
Embedding an Image in a Page
-
The GD Extension
-
Basic Graphics Concepts
-
Creating and Drawing Images
-
Images with Text
-
Dynamically Generated Buttons
-
Scaling Images
-
Color Handling
-
-
Chapter 10 PDF
-
PDF Extensions
-
Documents and Pages
-
Text
-
Images and Graphics
-
Navigation
-
Other PDF Features
-
-
Chapter 11 XML
-
Lightning Guide to XML
-
Generating XML
-
Parsing XML
-
Transforming XML with XSLT
-
Web Services
-
-
Chapter 12 Security
-
Global Variables and Form Data
-
Filenames
-
File Uploads
-
File Permissions
-
Concealing PHP Libraries
-
PHP Code
-
Shell Commands
-
Security Redux
-
-
Chapter 13 Application Techniques
-
Code Libraries
-
Templating Systems
-
Handling Output
-
Error Handling
-
Performance Tuning
-
-
Chapter 14 Extending PHP
-
Architectural Overview
-
What You’ll Need
-
Building Your First Extensions
-
The config.m4 File
-
Memory Management
-
The pval/zval Data Type
-
Parameter Handling
-
Returning Values
-
References
-
Global Variables
-
Creating Variables
-
Extension INI Entries
-
Resources
-
Where to Go from Here
-
-
Chapter 15 PHP on Windows
-
Installing and Configuring PHP on Windows
-
Writing Portable Code for Windows and Unix
-
Interfacing with COM
-
Interacting with ODBC Data Sources
-
-
Appendix Function Reference
-
PHP Functions by Category
-
Alphabetical Listing of PHP Functions (a-e)
-
Alphabetical Listing of PHP Functions (f-i)
-
Alphabetical Listing of PHP Functions (j-q)
-
Alphabetical Listing of PHP Functions (r-z)
-
-
Appendix Extension Overview
-
Optional Extensions Listing
-
-
Colophon
- Title:
- Programming PHP
- By:
- Rasmus Lerdorf, Kevin Tatroe
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- March 2002
- Pages:
- 528
- Print ISBN:
- 978-1-56592-610-3
- | ISBN 10:
- 1-56592-610-2
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Programming PHP is a cuckoo (Cuculus canorus). Cuckoos epitomize minimal effort. The common cuckoo doesn't build a nest-instead, the female cuckoo finds another bird's nest that already contains eggs and lays an egg in it (a process she may repeat up to 25 times, leaving 1 egg per nest). The nest mother rarely notices the addition, and usually incubates the egg and then feeds the hatchling as if it were her own. Why don't nest mothers notice that the cuckoo's eggs are different from their own? Recent research suggests that it's because the eggs look the same in the ultraviolet spectrum, which birds can see.
When they hatch, the baby cuckoos push all the other eggs out of the nest. If the other eggs hatched first, the babies are pushed out too. The host parents often continue to feed the cuckoo even after it grows to be much larger than they are, and cuckoo chicks sometimes use their call to lure other birds to feed them as well. Interestingly, only Old World (European) cuckoos colonize other nests-the New World (American) cuckoos build their own (untidy) nests. Like many Americans, these cuckoos migrate to the tropics for winter.
Cuckoos have a long and glorious history in literature and the arts. The Bible mentions them, as do Pliny and Aristotle. Beethoven used the cuckoo's distinctive call in his Pastoral Symphony. And here's a bit of etymology for you: the word "cuckold" (a husband whose wife is cheating on him) comes from "cuckoo." Presumably, the practice of laying one's eggs in another's nest seemed an appropriate metaphor. Rachel Wheeler was the production editor and copyeditor for Programming PHP. Sue Willing and Jeffrey Holcomb provided quality control, and Sue Willing provided production assistance. Ellen Troutman-Zaig wrote the index.
Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
Melanie Wang designed the interior layout, based on a series design by David Futato. Neil Walls converted the files from Microsoft Word to FrameMaker 5.5.6 using tools created by Mike Sierra. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. This colophon was written by Nathan Torkington and Rachel Wheeler.
