My Account
View Cart
Home
Community
Books & Videos
Safari Books Online
Conferences
Training
School of Technology
About
Complete List
Bestsellers
New Releases
Rough Cuts
Upcoming Titles
Ebooks
By Publisher
By Series
Out of Print
Order Info
Search
Search Tips
Tell a friend
Learning PHP 5
By
David Sklar
June 2004
Pages: 368
|
Table of Contents
|
Index
|
Sample Chapter
|
Colophon
Table of Contents
Chapter 1
Orientation and First Steps
PHP's Place in the Web World
What's So Great About PHP?
PHP in Action
Basic Rules of PHP Programs
Chapter Summary
Chapter 2
Working with Text and Numbers
Text
Numbers
Variables
Chapter Summary
Exercises
Chapter 3
Making Decisions and Repeating Yourself
Understanding true and false
Making Decisions
Building Complicated Decisions
Repeating Yourself
Chapter Summary
Exercises
Chapter 4
Working with Arrays
Array Basics
Looping Through Arrays
Modifying Arrays
Sorting Arrays
Using Multidimensional Arrays
Chapter Summary
Exercises
Chapter 5
Functions
Declaring and Calling Functions
Passing Arguments to Functions
Returning Values from Functions
Understanding Variable Scope
Chapter Summary
Exercises
Chapter 6
Making Web Forms
Useful Server Variables
Accessing Form Parameters
Form Processing with Functions
Validating Data
Displaying Default Values
Putting It All Together
Chapter Summary
Exercises
Chapter 7
Storing Information with Databases
Organizing Data in a Database
Connecting to a Database Program
Creating a Table
Putting Data into the Database
Inserting Form Data Safely
Generating Unique IDs
A Complete Data Insertion Form
Retrieving Data from the Database
Changing the Format of Retrieved Rows
Retrieving Form Data Safely
A Complete Data Retrieval Form
MySQL Without PEAR DB
Chapter Summary
Exercises
Chapter 8
Remembering Users with Cookies and Sessions
Working with Cookies
Activating Sessions
Storing and Retrieving Information
Configuring Sessions
Login and User Identification
Why setcookie( ) and session_start( ) Want to Be at the Top of the Page
Chapter Summary
Exercises
Chapter 9
Handling Dates and Times
Displaying the Date or Time
Parsing a Date or Time
Dates and Times in Forms
Displaying a Calendar
Chapter Summary
Exercises
Chapter 10
Working with Files
Understanding File Permissions
Reading and Writing Entire Files
Reading and Writing Parts of Files
Working with CSV Files
Inspecting File Permissions
Checking for Errors
Sanitizing Externally Supplied Filenames
Chapter Summary
Exercises
Chapter 11
Parsing and Generating XML
Parsing an XML Document
Generating an XML Document
Chapter Summary
Exercises
Chapter 12
Debugging
Controlling Where Errors Appear
Fixing Parse Errors
Inspecting Program Data
Fixing Database Errors
Chapter Summary
Exercises
Chapter 13
What Else Can You Do with PHP?
Graphics
PDF
Shockwave/Flash
Browser-Specific Code
Sending and Receiving Mail
Uploading Files in Forms
The HTML_QuickForm Form-Handling Framework
Classes and Objects
Advanced XML Processing
SQLite
Running Shell Commands
Advanced Math
Encryption
Talking to Other Languages
IMAP, POP3, and NNTP
Command-Line PHP
PHP-GTK
Even More Things You Can Do with PHP
Appendix A
Installing and Configuring the PHP Interpreter
Using PHP with a Web-Hosting Provider
Installing the PHP Interpreter
Installing PEAR
Downloading and Installing PHP's Friends
Modifying PHP Configuration Directives
Appendix Summary
Appendix B
Regular Expression Basics
Characters and Metacharacters
Quantifiers
Anchors
Character Classes
Greed
PHP's PCRE Functions
Appendix Summary
Exercises
Appendix C
Answers To Exercises
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Appendix B
Colophon
Return to
Learning PHP 5