Marktplatzangebote
Ein Angebot für € 9,99 €
  • Broschiertes Buch

Written by the authors of the actual PHP code! The authoritative developer's guide to mastering advanced PHP 5 techniques.
FREE access to a 90 day FULL version of the Zend Studio IDE!
Coverage of PHP 5's hottest new features, including OOP, Design Patterns, XML/SOAP integration PLUS expert chapters on PHP 5 Performance Tuning and PEAR.
PHP and ASP/ASP.NET have emerged as the two primary application development frameworks for developing web applications. PHP is open source, and it is the most popular Apache module in use, by far. This book covers the key topics that developers familiar
…mehr

Andere Kunden interessierten sich auch für
Produktbeschreibung
Written by the authors of the actual PHP code! The authoritative developer's guide to mastering advanced PHP 5 techniques.

FREE access to a 90 day FULL version of the Zend Studio IDE!

Coverage of PHP 5's hottest new features, including OOP, Design Patterns, XML/SOAP integration PLUS expert chapters on PHP 5 Performance Tuning and PEAR.

PHP and ASP/ASP.NET have emerged as the two primary application development frameworks for developing web applications. PHP is open source, and it is the most popular Apache module in use, by far. This book covers the key topics that developers familiar with basic PHP syntax need to master to become fully productive and effective with PHP 5. These topics include customizing PHP through writing PHP extensions, object-oriented PHP programming, using and building PEAR components, PHP shell scripting, and XML with PHP. Simply put: Readers will understand how to extend PHP to meet the needs of any development project, no matter how complex Product Description
PHP and ASP/ASP.NET have emerged as the two primary applicationdevelopment frameworks for developing web applications. PHP is opensource, and it is the most popular Apache module in use, by far. This bookcovers the key topics that developers familiar with basic PHP syntax need tomaster to become fully productive and effective with PHP 5. These topicsinclude customizing PHP through writing PHP extensions, object-orientedPHP programming, using and building PEAR components, PHP shellscripting, and XML with PHP. Simply put: Readers will understand how toextend PHP to meet the needs of any development project, no matter howcomplex

Backcover
This book, written by my colleague, Andi Gutmans, and two very prominent PHP developers, Stig Bakken and Derick Rethans, holds the key to unlocking the riches of PHP 5. It thoroughly covers all of the features of this new version, and is a must have for all PHP developers interested in exploring PHP 5's advanced features

-Zeev Suraski, Co-Designer of PHP 5 and Co-Creator of the Zend Engine

Expert PHP 5 programming techniques, direct from PHP 5 co-creator and key developers

Definitive coverage of the PHP object model, design patterns, XML/SOAP integration, and more

Solid introduction and expert insights into performance tuning, PEAR, extensions, and database access

The definitive introduction to PHP 5's advanced features!

The definitive introduction for today's most powerful PHP 5 techniques

In this book, PHP 5's co-creator and two leading PHP developers show you how to make the most of PHP 5's industrial-strength enhancements in any project-no matter how large or complex. Their unique insights and realistic examples illuminate PHP 5's new object model, powerful design patterns, improved XML Web services support, and much more. Whether you're creating web applications, extensions, packages, or shell scripts-or migrating PHP 4 code-here are high-powered solutions you won't find anywhere else.

Review PHP's syntax and master its object-oriented capabilities-from properties and methods to polymorphism, interfaces, and reflection

Master the four most important design patterns for PHP development

Write powerful web applications: handle input, cookies, session extension, and more

Integrate with MySQL, SQLite, and other database engines

Provide efficient error handling that's transparent to your users

Leverage PHP 5's improved XML support-including parsing, XSLT conversions, and more

Build XML-based web services with XML-RPC and SOAP

Make the most of PEAR: work with the repository, use key packages, and create your own

Upgrade PHP 4 code to PHP 5-compatibility issues, techniques, and practical workarounds

Improve script performance: tips and tools for PHP optimization

Use PHP extensions to handle files/streams, regular expressions, dates/times, and graphics

Create original extensions and shell scripts

If you're a software developer new to PHP, you'll leap quickly into PHP and its new object-oriented capabilities. If you're an experienced PHP programmer, you already recognize PHP's convenience and simplicity. Now, discover all of its extraordinary power!

ABOUT THE SOFTWARE

At this book's link to Zend.com, download a fully functional 90-day version of Zend Studio, today's breakthrough tool for developing, managing, and debugging PHP code.

Series Editor Bruce Perens' is an open source evangelist, developer, and consultant whose software is a major component of most commercial embedded Linux offerings. He founded or cofounded Linux Standard Base, Open Source Initiative, and Software in the Public Interest. As Debian GNU/Linux Project Leader, he was instrumental in getting the system on two U.S. space shuttle flights.

© Copyright Pearson Education. All rights reserved.

Foreword.

Preface.

1. What Is New in PHP 5?

Introduction.

Language Features.

New Object-Oriented Model.

New Object-Oriented Features.

Other New Language Features.

General PHP Changes.

XML and Web Services.

Other New Features in PHP 5.

New Memory Manager.

Dropped Support for Windows 95.

Summary.

2. PHP 5 Basic Language.

Introduction.

HTML Embedding.

Comments.

Variables.

Indirect References to Variables.

Managing Variables.

Superglobals.

Basic Data Types.

Integers.

Floating-Point Numbers.

Strings.

Booleans.

Null.

Arrays.

Constants.

Operators.

Binary Operators.

Assignment Operators.

Comparison Operators.

Logical Operators.

Bitwise Operators.

Unary Operators.

Negation Operators.

Increment/Decrement Operators.

The Cast Operators.

The Silence Operator.

The One and Only Ternary Operator.

Control Structures.

Conditional Control Structures.

Loop Control Structures.

Code Inclusion Control Structures.

Functions.

User-Defined Functions.

Function Scope.

Returning Values By Value.

Returning Values By Reference.

Declaring Function Parameters.

Static Variables.

Summary.

3. PHP 5 OO Language.

Introduction.

Objects.

Declaring a Class.

The new Keyword and Constructors.

Destructors.

Accessing Methods and Properties Using the $this Variable.

public, protected, and private Properties.

public, protected, and private Methods.

Static Properties.

Static Methods.

Class Constants.

Cloning Objects.

Polymorphism.

parent:: and self::.

instanceof Operator.

Interfaces.

Inheritance of Interfaces.

final Methods.

final Classes.

__toString() Method.

Exception Handling.

__autoload().

Class Type Hints in Function Parameters.

Summary.

4. PHP 5 Advanced OOP and Design Patterns.

Introduction.

Overloading Capabilities.

Property and Method Overloading.

Overloading the Array Access Syntax.

Iterators.

Design Patterns.

Strategy Pattern.

Singleton Pattern.

Factory Pattern.

Observer Pattern.

Reflection.

Introduction.

Reflection API.

Reflection Examples.

Implementing the Delegation Pattern Using Reflection.

Summary.

5. How to Write a Web Application with PHP.

Introduction.

Embedding into HTML.

User Input.

Safe-Handling User Input.

Common Mistakes.

Techniques to Make Scripts Safe.

Input Validation.

HMAC Verification.

PEAR::Crypt_HMAC.

Input Filter.

Working with Passwords.

Error Handling.

Cookies.

Sessions.

Handling the Incoming Uploaded File.

Architecture.

One Script Serves All.

One Script per Function.

Separating Logic from Layout.

Summary.

6. Databases with PHP 5.

Introduction.

MySQL.

MySQL Strengths and Weaknesses.

PHP Interface.

Example Data.

Connections.

Buffered Versus Unbuffered Queries.

Queries.

Multi Statements.

Fetching Modes.

Prepared Statements.

BLOB Handling.

SQLite.

SQLite Strengths and Weaknesses.

Best Areas of Use.

PHP Interface.

PEAR DB.

Obtaining PEAR DB.

Pros and Cons of Database Abstraction.

Which Features Are Abstracted?

Database Connections.

Executing Queries.

Fetching Results.

Sequences.

Portability Features.

Abstracted Errors.

Convenience Methods.

Summary.

7. Error Handling.

Introduction.

Types of Errors.

Programming Errors.

Undefined Symbols.

Portability Error
This book, written by my colleague, Andi Gutmans, and two very prominent PHP developers, Stig Bakken and Derick Rethans, holds the key to unlocking the riches of PHP 5. It thoroughly covers all of the features of this new version, and is a must have for all PHP developers interested in exploring PHP 5's advanced features