This book assumes you are familiar with variables, loops, and other basic programming concepts. Although this material is explained to a degree, it is recommended that you at least have some experience using PHP or a similar programming language.
Contents of This Book
, Introduction to PHP, covers the general characteristics of the PHP language and its implementations, and discusses where to get help and information.
, Installing PHP, explains how to obtain and install PHP.
, The PHP Interpreter, covers the PHP interpreter and its use for running PHP programs on a web server or on the command line.
, The PHP Language, covers PHP syntax, variables, control structures, includes, and user-defined functions.
, Variables and Constants, examines the different variable types in PHP.
, Operators, outlines the basic operators in PHP.
, Function Reference, is a reference chapter for the most commonly used built-in functions of PHP.
, Object-Oriented PHP, explains object-oriented programming in PHP.
, HTML Forms, is an introduction to creating HTML forms and processing them in PHP.
, Cookies and Sessions, explains the tools for using cookies and sessions in PHP.
, Output Buffering, describes how to buffer your output, and when you would want to do so.
, Security, covers a few essential security considerations when running PHP websites.
, Files, is a reference to the functions for interacting with files.
, Databases, gives a brief introduction to accessing MySQL and SQLite databases in PHP, and to PEAR::DB
, which provides a consistent interface to many different database packages.
, Regular Expressions, covers some powerful ways to process strings, including matching, extracting substrings, and replacing text.
, Manipulating Images, shows how to create and alter images with the GD library that ships with PHP.
, Creating PDFs, shows how to create PDFs in PHP using PDFlib.
, Creating Flash, shows how to generate Flash movies in PHP using the Ming library.
, XML & XSLT, covers modules for processing XML with PHP.
, Network Programming, explains socket programming, custom HTTP headers, HTTP authentication, sending email, and sending data over FTP and HTTP with Curl.
, Distributing Your Code, describes a few considerations when you prepare to distribute your code to other users.
, Debugging, is about the tools available to help you track down errors in your PHP code.
, Performance, offers a few tips on getting the most out of PHP.
Conventions Used in This Book
The following typographical conventions are used in this book:
Plain text
Indicates menu titles, menu options, menu buttons, and keyboard accelerators (such as Alt and Ctrl).
ItalicIndicates new terms, URLs, email addresses, filenames, file extensions, pathnames, directories, and Unix utilities.
Constant width
Indicates commands, options, switches, variables, attributes, keys, functions, types, classes, namespaces, methods, modules, properties, parameters, values, objects, events, event handlers, XML tags, HTML tags, macros, the contents of files, or the output from commands.
Constant width bold
Shows commands or other text that should be typed literally by the user.
Constant width italic
Shows text that should be replaced with user-supplied values.
Tip
This icon signifies a tip, suggestion, or general note.
Warning
This icon indicates a warning or caution.
Using Code Examples
This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you're reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from O'Reilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your product's documentation does require permission.
We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: " PHP in a Nutshell by Paul Hudson. Copyright 2006 O'Reilly Media, Inc., 0-596-10067-1."
If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at .
Safari Enabled
When you see a Safari enabled icon on the cover of your favorite technology book, that means the book is available online through the O'Reilly Network Safari Bookshelf.