E-Book Content
CYAN MAGENTA
YELLOW BLACK PANTONE 123 CV
BOOKS FOR PROFESSIONALS BY PROFESSIONALS ®
Dear Reader,
Coauthor of
Ajax with PHP
PHP 5 Recipes: A ProblemSolution Approach
With the emergence of Ajax, gone are the days of clicking and waiting on the Web. Users now have the luxury of accessing desktop-like applications from any computer hosting a browser and an Internet connection. Likewise, developers now have more reason than ever to migrate their applications to an environment that has the potential for unlimited users. Yet despite all that Ajax promises, many web developers readily admit being intimidated by the need to learn JavaScript (a key Ajax technology). Not to worry! I wrote this book to show PHP users how to incorporate Ajax into their web applications without necessarily getting bogged down in confusing JavaScript syntax. I’ve chosen to introduce the topic by way of practical examples and real-world applications. After a rapid introduction to Ajax fundamentals, you’ll learn how to effectively use Ajax and PHP together, followed by further instruction regarding dynamically updating pages using data retrieved from a MySQL database. From there, you’ll learn how to create practical Ajax-driven features such as a dynamic file upload and thumbnail-generation tools, culminating in the creation of an Ajax-based photo gallery. In later chapters, I focus on other timely topics, such as web services and building spatially enabled web applications using the Google Maps API. The book concludes with an overview of topics that will make you a more effective Ajax developer, including a look at cross-browser issues, security, testing and debugging, and finally, an introduction to the document object model (DOM).
Companion eBook Available
Beginning
Beginning Ajax with PHP: From Novice to Professional
THE EXPERT’S VOICE ® IN OPEN SOURCE
Beginning
Ajax with PHP From Novice to Professional
Join online discussions:
forums.apress.com
Lee Babin
FOR PROFESSIONALS BY PROFESSIONALS ™
Companion eBook
Build powerful interactive web applications by harnessing the collective power of PHP and Ajax! THE APRESS ROADMAP PHP 5 Objects, Patterns, and Practice
Beginning PHP and MySQL 5, Second Edition See last page for details on $10 eBook version
Ajax Patterns and Best Practices Beginning XML with DOM and Ajax
Beginning Ajax with PHP
Ajax and REST Recipes Beginning Google Maps Applications with PHP and Ajax
ISBN 1-59059-667-6 53499
US $34.99
Babin
SOURCE CODE ONLINE
www.apress.com
Lee Babin
Shelve in PHP User level: Beginner–Intermediate
6
89253 59667
8
9 781590 596678
this print for content only—size & color not accurate
spine = 0.638" 272 page count
6676FM.qxd
9/27/06
11:49 AM
Page i
Beginning Ajax with PHP From Novice to Professional
Lee Babin
6676FM.qxd
9/27/06
11:49 AM
Page ii
Beginning Ajax with PHP: From Novice to Professional Copyright © 2007 by Lee Babin 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-59059-667-8 ISBN-10 (pbk): 1-59059-667-6 Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1 Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the