Pro PHP Programming
Copyright 2011 by Peter MacIntyre, Brian Danchilla, and Mladen Gogala
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher.
ISBN-13 (pbk): 978-1-4302-3560-6
ISBN-13 (electronic): 978-1-4302-3561-3
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
President and Publisher: Paul Manning
Lead Editor: Frank Pohlmann
Technical Reviewer: Thomas Myer
Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, Jonathan Gennick, Jonathan Hassell, Michelle Lowman, James Markham, Matthew Moodie, Jeff Olson, Jeffrey Pepper, Frank Pohlmann, Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Matt Wade, Tom Welsh
Coordinating Editor: Jessica Belanger
Copy Editor: Tracy Brown
Production Support: Patrick Cunningham
Indexer: SPi Global
Cover Designer: Anna Ishchenko
Distributed to the book trade worldwide by Springer Science+Business Media, LLC., 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com
, or visit www.springeronline.com"
For information on translations, please e-mail rights@apress.com
, or visit www.apress.com.
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk SaleseBook Licensing web page at www.apress.com/bulk-sales.
The information in this book is distributed on an as is basis, without warranty. Although every precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work.
The source code for this book is available to readers at www.apress.com
. You will need to answer questions pertaining to this book in order to successfully download the code.
Having dedicated my other writings to my wife Dawn and our kids, I would like to dedicate this book to all those in the PHP community who are keeping this language fresh, robust, and ever growing. To the open source community and its ideals and conceptsmay it continue ad infinitum!
Peter
For mom and dad
Brian
To my beloved wife and son
Mladen
Contents at a Glance
Contents
About the Author
Peter MacIntyre has over 20 years' experience in the information technology industry, primarily in the area of software development.
Peter is a Zend Certified Engineer (ZCE), having passed his PHP certification exam. He has contributed to many IT industry publications, including Using Visual Objects (Que, 1995), Using PowerBuilder 5 (Que, 1996), ASP.NET Bible (Wiley, 2001), Zend Studio for Eclipse Developer's Guide (Sams, 2008), Programming PHP (Second Edition) (O'Reilly Media, 2006), and PHP: The Good Parts (O'Reilly Media, 2010).
Peter has been a speaker at North American and international computer conferences, including CA-World in New Orleans, USA; CA-TechniCon in Cologne, Germany; and CA-Expo in Melbourne, Australia. Peter lives in Prince Edward Island, Canada, where he is the Senior Solutions Consultant for OSSCube (www.osscube.com
), a world leader in open source software development and consultancy. He assists OSSCube with running its Zend Center of Excellence. Peter can be reached at: