Learning PHP 5

by
Format: Paperback
Pub. Date: 2004-08-15
Publisher(s): Oreilly & Associates Inc
  • Free Shipping Icon

    This Item Qualifies for Free Shipping!*

    *Excludes marketplace orders.

List Price: $29.95

Buy New

Special Order. We will make every effort to obtain this item but cannot guarantee stock or timing.
$29.92

Rent Book

Select for Price
There was a problem. Please try again later.

Rent Digital

Rent Digital Options
Online:1825 Days access
Downloadable:Lifetime Access
$28.79
*To support the delivery of the digital material to you, a digital delivery fee of $3.99 will be charged on each digital item.
$28.79*

Used Book

We're Sorry
Sold Out

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

Any interested, intelligent, but not necessarily technical person with a web site to customize will appreciate this tutorial. With Learning PHP 5, page designers can communicate better with their developer co- workers. Those who know JavaScript can build server-side programs that complement their client-side code. And bloggers can easily add dynamic features to their site. Most of the book's chapters end with exercises, making this an excellent textbook for an introductory class on web programming.

Author Biography

is an independent software development and strategic technology consultant. He was a co-founder and the Chief Technology Officer of Student.Com and TVGrid.Com. At both companies, David oversaw the architecture and development of varied systems to deliver personalized dynamic content to users around the world. After discovering PHP as a solution to his web programming needs in 1996, he created the PX (http://px.sklar.com/), which enables PHP users to exchange programs. Since then, he has continued to rely on PHP for personal and professional projects. When away from the computer, David eats mini-donuts, plays records, and likes to cook. He lives in New York City and has a degree in Computer Science from Yale University.

Table of Contents

Preface xi
1. Orientation and First Steps
1(15)
PHP's Place in the Web World
1(3)
What's So Great About PHP?
4(2)
PHP in Action
6(5)
Basic Rules of PHP Programs
11(4)
Chapter Summary
15(1)
2. Working with Text and Numbers
16(17)
Text
16(9)
Numbers
25(2)
Variables
27(4)
Chapter Summary
31(1)
Exercises
32(1)
3. Making Decisions and Repeating Yourself
33(15)
Understanding true and false
34(1)
Making Decisions
35(2)
Building Complicated Decisions
37(6)
Repeating Yourself
43(3)
Chapter Summary
46(1)
Exercises
46(2)
4. Working with Arrays
48(21)
Array Basics
48(4)
Looping Through Arrays
52(5)
Modifying Arrays
57(3)
Sorting Arrays
60(3)
Using Multidimensional Arrays
63(3)
Chapter Summary
66(1)
Exercises
67(2)
5. Functions
69(15)
Declaring and Calling Functions
70(1)
Passing Arguments to Functions
71(3)
Returning Values from Functions
74(4)
Understanding Variable Scope
78(4)
Chapter Summary
82(1)
Exercises
82(2)
6. Making Web Forms
84(30)
Accessing Form Parameters
88(2)
Form Processing with Functions
90(3)
Validating Data
93(10)
Displaying Default Values
103(2)
Putting It All Together
105(7)
Chapter Summary
112(1)
Exercises
112(2)
7. Storing Information with Databases
114(37)
Organizing Data in a Database
115(2)
Connecting to a Database Program
117(2)
Creating a Table
119(2)
Putting Data into the Database
121(5)
Inserting Form Data Safely
126(1)
Generating Unique IDs
127(1)
A Complete Data Insertion Form
128(3)
Retrieving Data from the Database
131(5)
Changing the Format of Retrieved Rows
136(2)
Retrieving Form Data Safely
138(3)
A Complete Data Retrieval Form
141(4)
MySQL Without PEAR DB
145(3)
Chapter Summary
148(1)
Excrcises
149(2)
8. Remembering Users with Cookies and Sessions
151(19)
Working with Cookies
152(4)
Activating Sessions
156(1)
Storing and Retrieving Information
157(3)
Configuring Sessions
160(1)
Login and User Identification
161(6)
Why setcookie() and session start() Want to Be at the Top of the Page
167(1)
Chapter Summary
168(1)
Exercises
169(1)
9. Handling Dates and Times
170(22)
Displaying the Date or Time
170(5)
Parsing a Date or Time
175(1)
Dates and Times in Forms
176(10)
Displaying a Calendar
186(4)
Chapter Summary
190(1)
Exercises
190(2)
10. Working with Files 192(18)
Understanding File Permissions
192(1)
Reading and Writing Entire Files
193(4)
Reading and Writing Parts of Files
197(3)
Working with CSV Files
200(3)
Inspecting File Permissions
203(1)
Checking for Errors
204(2)
Sanitizing Externally Supplied Filenames
206(2)
Chapter Summary
208(1)
Exercises
208(2)
11. Parsing and Generating XML 210(11)
Parsing an XML Document
211(6)
Generating an XML Document
217(2)
Chapter Summary
219(1)
Exercises
219(2)
12. Debugging 221(11)
Controlling Where Errors Appear
221(1)
Fixing Parse Errors
222(4)
Inspecting Program Data
226(3)
Fixing Database Errors
229(1)
Chapter Summary
230(1)
Exercises
230(2)
13. What Else Can You Do with PHP? 232(23)
Graphics
232(1)
PDF
233(1)
Shockwave/Flash
234(2)
Browser-Specific Code
236(1)
Sending and Receiving Mail
236(1)
Uploading Files in Forms
237(2)
The HTML_QuickForm Form-Handling Framework
239(3)
Classes and Objects
242(2)
Advanced XML Processing
244(3)
SQLite
247(1)
Running Shell Commands
248(1)
Advanced Math
249(1)
Encryption
250(1)
Talking to Other Languages
251(1)
IMAP, POP3, and NNTP
251(2)
Command-Line PHP
253(1)
PHP-GTK
253(1)
Even More Things You Can Do with PHP
254(1)
A. Installing and Configuring the PHP Interpreter 255(25)
B. Regular Expression Basics 280(16)
C. Answers To Exercises 296(39)
Index 335

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.