PHP 5 e-commerce Development Create a flexible framework in PHP for a powerful e-commerce solution Michael Peacock BIRMINGHAM - MUMBAI This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 PHP 5 e-commerce Development Copyright © 2010 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: January 2010 Production Reference: 1140110 Published by Packt Publishing Ltd. 32 Lincoln Road Olton Birmingham, B27 6PA, UK. ISBN 978-1-847199-64-5 www.packtpub.com Cover Image by Vinayak Chittar (vinayak.chittar@gmail.com) This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 Credits Author Michael Peacock Reviewers Chetankumar Akarte Tahsin Hasan Acquisition Editor Douglas Paterson Development Editor Swapna V. Verlekar Technical Editor Ishita Dhabalia Indexer Rekha Nair Proofreader Sandra Hopper Production Editorial Manager Abhijeet Deobhakta Editorial Team Leader Gagandeep Singh Project Team Leader Lata Basantani Project Coordinator Poorvi Nair Graphics Geetanjali Sawant Production Coordinator Shantanu Zagade Cover Work Shantanu Zagade This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 About the Author Michael Peacock (http://www.michaelpeacock.co.uk) is a web developer from Newcastle on Tyne, UK with a degree in Software Engineering from the University of Durham. After meeting his business partner while studying at Durham, he co-founded Peacock Carter Limited (http://www.peacockcarter.co.uk), a Newcastle-based creative consultancy specializing in web design, web development, and corporate identity. Michael loves working on web-related projects and new business ideas, usually with interests in several companies. He has been involved with a number of books, having written four books: PHP 5 e-commerce Development, Drupal 6 Social Networking, Selling Online with Drupal e-Commerce, and Building Websites with TYPO3, and acted as technical reviewer for two others—Mobile Web Development and Drupal for Education and E-Learning. You can follow Michael on Twitter: http://www.twitter.com/michaelpeacock. I'd like to thank everybody at Packt Publishing, in particular Douglas Paterson for working with me on building the idea of this book into a suitable structure; Poorvi Nair for helping to keep the book on track; Swapna Verlekar, the development editor; and of course, the technical reviewers, Chetan Akarte and Tahsin Hasan, who helped improve the quality of the book. My thanks also go to my friends and family, in particular my ancée Emma for her support while working on the book. Finally, I'd like to thank you, the reader; I hope that you enjoy this book, and produce a fantastic e-commerce website of your own. I look forward to hearing your feedback and seeing what e-commerce sites you come up with! This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 About the Reviewers Chetankumar Akarte is working on PHP since last 5 years. He has extensively worked on small- and large-scale PHP e-commerce, social networking, Wordpress, and Joomla-based web projects. Over the years, Chetan has been actively involved in "Xfunda Developers Community" and has regularly been blogging on Microsoft .NET technology at http://www.tipsntracks.com. Chetan received a Bachelor of Engineering degree in Electronics from the Nagpur University, India in 2006. He likes to contribute on the newsgroups and forums, and has written articles for Electronics For You, DeveloperIQ, and Flash & Flex Developer's Magazine. Chetan lives in Navi Mumbai, India. You can visit his websites http://www.xfunda.com and http://www.tipsntracks.com or get in touch with him at chetan.akarte@gmail.com. I would like to thank my sister Poonam and Jijaji Vinay for their consistent support and encouragement. I'd also like to thank Packt Publishing and especially my Project Coordinator Poorvi for giving me the opportunity to do something useful. This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 . PHP 5 e-commerce Development Create a flexible framework in PHP for a powerful e-commerce solution Michael Peacock BIRMINGHAM - MUMBAI This. February 2010 953 Quincy Drive, , Brick, , 08724 About the Reviewers Chetankumar Akarte is working on PHP since last 5 years. He has extensively worked on small- and large-scale PHP e-commerce, . involved with a number of books, having written four books: PHP 5 e-commerce Development, Drupal 6 Social Networking, Selling Online with Drupal e-Commerce, and Building Websites with TYPO3, and acted