Practical Web 2.0 Applications with PHP (eBook)

(Autor)

eBook Download: PDF
2008 | 1st ed.
XX, 569 Seiten
Apress (Verlag)
978-1-4302-0475-6 (ISBN)

Lese- und Medienproben

Practical Web 2.0 Applications with PHP - Quentin Zervaas
Systemvoraussetzungen
52,99 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

In Practical PHP Web 2.0 Applications, PHP, MySQL, CSS, XHTML, and JavaScript/Ajax development techniques are brought together to show you how to create the hottest PHP web applications, from planning and design up to final implementation, without going over unnecessary basics that will hold you back. This book includes must-have application features such as search functionality, maps, blogs, dynamic image galleries, and personalized user areas. It covers everything in a practical, tutorial style so you can start working on your own projects as quickly as possible.



Quentin Zervaas is a web developer based in Adelaide, South Australia, where he has been self-employed since 2003. After receiving his bachelor's degree in computer science from the University of Adelaide in 2001, Quentin worked for several web development firms before branching out on his own, developing a wide range of custom web applications for customers all around the world. Quentin has recently started a new company called Recite Media (http://www.recite.com.au) with two partners. Recite Media develops web applications primarily for other development or design companies to resell. Its flagship product, Recite CMS, is being used by some of Australia's largest companies. Quentin also runs and writes for his PHP development resource site, phpRiot (phpRiot.com), which provides a number of useful articles on a wide variety of PHP-related topics. After completing his role as the technical reviewer for Beginning Ajax with PHP: From Novice to Professional (Apress, 2006), he decided to undertake writing Practical Web 2.0 Applications with PHP.
Many of today's web development books and articles cover single aspects of the development life cycle, delving only into specific features rather than looking at the whole picture. In this book, we will develop a complete web application. Although we will be using various third-party libraries and tools to aid in development, we will be developing the application from start to finish. The focus of this book is on Web 2. 0, a catchphrase that has been in use for a few years now and is typically used to refer to web sites or web applications that have particular char- teristics. Some of these characteristics include the following: * Correctly using HTML/XHTML, CSS, and other standards * Using Ajax (Asynchronous JavaScript and XML) to provide a responsive application without requiring a full refresh of pages * Allowing syndication of web site content using RSS * Adding wikis, blogs, or tags Although not everybody is an advocate of the "e;Web 2. 0"e; phrase, the term does signify forward progress in web development. And although not everybody has the need to provide a wiki or a blog on their web site, the other characteristics listed (such as correct standards usage) provide a good basis for a web site and should be used by all developers, regardless of how they want their web site or application categorized. I wrote this book because I want to share with other users how I build web sites.

Quentin Zervaas is a web developer based in Adelaide, South Australia, where he has been self-employed since 2003. After receiving his bachelor's degree in computer science from the University of Adelaide in 2001, Quentin worked for several web development firms before branching out on his own, developing a wide range of custom web applications for customers all around the world. Quentin has recently started a new company called Recite Media (http://www.recite.com.au) with two partners. Recite Media develops web applications primarily for other development or design companies to resell. Its flagship product, Recite CMS, is being used by some of Australia's largest companies. Quentin also runs and writes for his PHP development resource site, phpRiot (phpRiot.com), which provides a number of useful articles on a wide variety of PHP-related topics. After completing his role as the technical reviewer for Beginning Ajax with PHP: From Novice to Professional (Apress, 2006), he decided to undertake writing Practical Web 2.0 Applications with PHP.

Contents at a Glance 4
Contents 5
About the Author 15
About the Technical Reviewer 16
Introduction 17
Who This Book Is For 17
How This Book Is Structured 18
Prerequisites 20
Downloading the Code 20
Contacting the Author 20
Application Planning and Design 21
What Is Web 2.0? 22
Database Connectivity 22
Web Site Templates 23
Web Site Features 23
Other Aspects of Development 25
Version Control and Unit Testing 28
Summary 28
Setting Up the Application Framework 29
Web Server Setup 29
Application Filesystem Structure 32
Installing the Zend Framework 34
Configuring the Web Server 35
Setting Up the Database 37
Using the Model- View- Controller Pattern 38
Defining Application Settings 47
Connecting to the Database 49
The Smarty Template Engine 50
Adding Logging Capabilities 61
Summary 64
User Authentication, Authorization, and Management 65
Creating the User Database Table 65
Introduction to Zend_ Auth 69
Introduction to Zend_ Acl 74
Combining Zend_ Auth, Zend_ Acl, and Zend_ Controller_ Front 77
Managing User Records with DatabaseObject 81
Managing User Profiles 86
Summary 92
User Registration, Login, and Logout 93
Adding User Registration to the Application 93
Implementing Account Login and Logout 120
Dealing with Forgotten Passwords 128
Implementing Account Management 136
Summary 141
Introduction to Prototype and Scriptaculous 142
Downloading and Installing Prototype 142
Selecting Objects in the Document Object Model 143
Prototype’s Hash Object 148
Other Element Extensions 149
Ajax Operations in Prototype 153
Event Handling in Prototype 164
Creating JavaScript Classes in Prototype 166
From Prototype to Scriptaculous 170
Downloading and Installing Scriptaculous 173
Combining Prototype, Scriptaculous, Ajax, and PHP in a Useful Example 173
Summary 188
Styling the Web Application 189
Adding Page Titles and Breadcrumbs 189
Integrating the Design into the Application 201
Constructing the CSS 210
Styling the Application Web Forms 222
Loading Prototype and Scriptaculous 225
Implementing Client- Side Form Validation 226
Summary 235
Building the Blogging System 236
Creating the Database Tables 236
Setting Up DatabaseObject and Profile Classes 238
Creating a Controller for Managing Blog Posts 240
Creating and Editing Blog Posts 245
Previewing Blog Posts 265
Updating the Status of a Blog Post 271
Summary 279
Extending the Blog Manager 281
Listing Blog Posts on the Blog Manager Index 281
Ajaxing the Blog Monthly Summary 299
Integrating a WYSIWYG Editor 307
Summary 312
Personalized User Areas 313
Controlling User Settings 313
The UserController Class 318
Displaying the User’s Blog 329
Populating the Application Home Page 342
Summary 349
Implementing Web 2.0 Features 350
Tags 351
Web Feeds 366
Microformats 373
Allowing Users to Create a Public Profile 378
Summary 384
A Dynamic Image Gallery 385
Storing Uploaded Files 386
Uploading Files 388
Sending Images 401
Resizing Images 404
Managing Blog Post Images 413
Displaying Images on User Blogs 431
Summary 439
Implementing Site Search 440
Introduction to Zend_ Search_ Lucene 440
Indexing Application Content 443
Creating the Search Tool 455
Adding Autocompletion to the Search Tool 465
Summary 480
Integrating Google Maps 481
Google Maps Features 481
Planning Integration 485
Adding Location Storage Capabilities 487
Creating Our First Map 490
Managing Locations on the Map 499
Displaying the Map on Users’ Public Blogs 521
Summary 528
Deployment and Maintenance 530
Application Logging 530
Site Error Handling 535
Web Site Administration 546
Application Deployment 549
Backup and Restore 554
Summary 556
Index 557

Erscheint lt. Verlag 11.3.2008
Zusatzinfo XX, 569 p.
Verlagsort Berkeley
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Web / Internet
Schlagworte AJAX • CSS • Framework • JavaScript • MySQL • PHP • SQL • XHTML • ZEND
ISBN-10 1-4302-0475-3 / 1430204753
ISBN-13 978-1-4302-0475-6 / 9781430204756
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 5,4 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Das Handbuch für Ausbildung und Beruf

von Vivian Pein

eBook Download (2024)
Rheinwerk Computing (Verlag)
39,90