did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780596006815

Programming Php

by
  • ISBN13:

    9780596006815

  • ISBN10:

    0596006810

  • Edition: 2nd
  • Format: Paperback
  • Copyright: 2006-04-15
  • Publisher: Oreilly & Associates Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $39.99 Save up to $4.00
  • Digital
    $35.99
    Add to Cart

    DURATION
    PRICE

Supplemental Materials

What is included with this book?

Summary

The arrival of PHP 5 is a boon to the multitude of new and experienced web programmers who depend on this unique scripting language. In this new edition of Programming PHP, co-author Rasmus Lerdorf offers his unique knowledge and perspective as PHP s creator. PHP 5 has cleaned up the awkwardness of previous versions with new objects, better XML extensions, and new database extensions. Lerdorf and co-author Kevin Tatroe explain changes in PHP language syntax and programming techniques in a clear and concise manner, with numerous examples that illustrate both correct usage and common idioms. Their book also includes style tips and practical programming advice that will help readers not just become adequate PHP programmers, but good PHP programmers. For anyone interested in PHP 5, this is the guide.

Author Biography

Rasmus Lerdorf started the PHP Project back in 1995 and has been actively involved in PHP development ever since. Also involved in a number of other open source projects, Rasmus is a longtime Apache contributor and foundation member. He is the author of the first edition of the PHP Pocket Reference, and the co-author of the first edition of Programming PHP.

Kevin Tatroe has been a Macintosh and Unix programmer for ten years. He is an experienced PHP developer, knowledgeable in the changes coming with PHP 5. He is also co-author of the first edition of Programming PHP.

Peter MacIntyre lives and works in Charlottetown, Prince Edward Island, Canada. He has over 16 years of experience in the information technology industry, primarily in the area of software development. Peter's technical skill set includes several client/server tools and relational database systems such as PHP, PowerBuilder, Visual Basic, Active Server Pages, and CA-Visual Objects.

Peter is certified by ZEND Corporation on PHP 4.x and has contributed writing material for Using Visual Objects (Que Corp.), Using PowerBuilder 5 (Que Corp.), ASP.NET Bible (Wiley Pub.), and Web Warrior Survey on Web Development Languages (Course Technology).

Peter is also currently a contributing editor and author to the on-line and in-print magazine called php|architect (www.phparch.com). He has also spoken several times 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.

Table of Contents

Foreword ix
Preface xi
Introduction to PHP
1(17)
What Does PHP Do?
1(1)
A Brief History of PHP
2(5)
Installing PHP
7(2)
A Walk Through PHP
9(9)
Language Basics
18(45)
Lexical Structure
18(7)
Data Types
25(7)
Variables
32(4)
Expressions and Operators
36(13)
Flow-Control Statements
49(8)
Including Code
57(2)
Embedding PHP in Web Pages
59(4)
Functions
63(11)
Calling a Function
63(1)
Defining a Function
64(2)
Variable Scope
66(2)
Function Parameters
68(3)
Return Values
71(1)
Variable Functions
72(1)
Anonymous Functions
73(1)
Strings
74(45)
Quoting String Constants
74(4)
Printing Strings
78(4)
Accessing Individual Characters
82(1)
Cleaning Strings
82(1)
Encoding and Escaping
83(6)
Comparing Strings
89(2)
Manipulating and Searching Strings
91(6)
Regular Expressions
97(4)
POSIX-Style Regular Expressions
101(5)
Perl-Compatible Regular Expressions
106(13)
Arrays
119(24)
Indexed Versus Associative Arrays
119(1)
Identifying Elements of an Array
120(1)
Storing Data in Arrays
120(3)
Multidimensional Arrays
123(1)
Extracting Multiple Values
123(4)
Converting Between Arrays and Variables
127(1)
Traversing Arrays
128(5)
Sorting
133(5)
Acting on Entire Arrays
138(2)
Using Arrays
140(3)
Objects
143(21)
Terminology
144(1)
Creating an Object
144(1)
Accessing Properties and Methods
145(1)
Declaring a Class
146(7)
Introspection
153(6)
Serialization
159(5)
Web Techniques
164(32)
HTTP Basics
164(1)
Variables
165(1)
Server Information
166(2)
Processing Forms
168(14)
Setting Response Headers
182(3)
Maintaining State
185(10)
SSL
195(1)
Databases
196(29)
Using PHP to Access a Database
196(2)
Relational Databases and SQL
198(1)
PEAR DB Basics
199(6)
Advanced Database Techniques
205(6)
Sample Application
211(14)
Graphics
225(21)
Embedding an Image in a Page
225(1)
The GD Extension
226(1)
Basic Graphics Concepts
227(1)
Creating and Drawing Images
228(4)
Images with Text
232(4)
Dynamically Generated Buttons
236(3)
Scaling Images
239(1)
Color Handling
240(6)
PDF
246(15)
PDF Extensions
246(1)
Documents and Pages
246(2)
Text
248(13)
XML
261(24)
Lightning Guide to XML
261(2)
Generating XML
263(1)
Parsing XML
264(13)
Parsing XML with DOM
277(1)
Parsing XML with SimpleXML
277(1)
Transforming XML with XSLT
278(2)
Web Services
280(5)
Security
285(17)
Filter Input
285(5)
Escape Output
290(3)
Cross-Site Scripting
293(1)
Session Fixation
294(1)
File Uploads
295(1)
File Access
296(3)
PHP Code
299(1)
Shell Commands
300(1)
More Information
301(1)
Security Recap
301(1)
Application Techniques
302(19)
Code Libraries
302(1)
Templating Systems
303(3)
Handling Output
306(2)
Error Handling
308(5)
Performance Tuning
313(8)
Extending PHP
321(38)
Architectural Overview
321(1)
What You'll Need
322(1)
Building Your First Extensions
323(10)
The config.m4 File
333(3)
Memory Management
336(2)
The pval/zval Data Type
338(4)
Parameter Handling
342(3)
Returning Values
345(4)
References
349(1)
Global Variables
350(3)
Creating Variables
353(1)
Extension INI Entries
354(2)
Resources
356(2)
Where to Go from Here
358(1)
PHP on Windows
359(18)
Installing and Configuring PHP on Windows
359(4)
Writing Portable Code for Windows and Unix
363(3)
Interfacing with COM
366(6)
Interacting with ODBC Data Sources
372(5)
A. Function Reference 377(114)
B. Extension Overview 491(12)
Index 503

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program