Learning PHP 5 View Larger Image | David Sklar O'Reilly Media, Paperback, Published June 2004, 348 pages, ISBN 0596005601 | List Price: $29.95 Our Price: $18.95 You Save: $11.00 (37% Off)
| | | Availability: In-Stock |
Be the First to Write a Review and tell the world about this title!People who purchase this book frequently purchase: - Web Database Applications with PHP and MySQL, 2nd Edition; Hugh E. Williams, et al, $28.50, 37% Off!
- Programming PHP, 2nd Edition; Kevin Tatroe, et al, $24.95, 38% Off!
- PHP Pocket Reference, 2nd Edition; Rasmus Lerdorf, $6.95, 30% Off!
- PHP in a Nutshell; Paul Hudson, $18.95, 37% Off!
Books on similar topics, in best-seller order:Books from the same publisher, in best-seller order:
PHP has gained a following among non-technical web designers who need to add interactive
aspects to their sites. Offering a gentle learning curve, PHP is an accessible
yet powerful language for creating dynamic web pages. As its popularity has grown,
PHP's basic feature set has become increasingly more sophisticated. Now PHP 5
boasts advanced features--such as new object-oriented capabilities and support
for XML and Web Services--that will please even the most experienced web professionals
while still remaining user-friendly enough for those with a lower tolerance for
technical jargon.
If you've wanted to try your hand at PHP but haven't known where to start,
then Learning PHP 5 is the book you need. If you've wanted to try your hand
at PHP but haven't known where to start, then Learning PHP 5 is the book you
need. With attention to both PHP 4 and the new PHP version 5, it provides everything
from a explanation of how PHP works with your web server and web browser to
the ins and outs of working with databases and HTML forms. Written by the co-author
of the popular PHP Cookbook, this book is for intelligent (but not necessarily
highly-technical) readers. Learning PHP 5 guides you through every aspect of
the language you'll need to master for professional web programming results.
This book provides a hands-on learning experience complete with exercises to
make sure the lessons stick.
Learning PHP 5 covers the following topics, and more:
-
How PHP works with your web browser and web server
- PHP language basics, including data, variables, logic and looping
- Working with arrays and functions
- Making web forms
- Working with databases like MySQL
- Remembering users with sessions
- Parsing and generating XML
- Debugging
Written by David Sklar, coauthor of the PHP Cookbook and an instructor in PHP,
this book offers the ideal classroom learning experience whether you're in a
classroom or on your own. From learning how to install PHP to designing database-backed
web applications, Learning PHP 5 will guide you through every aspect of the
language you'll need to master to achieve professional web programming results. Table of Contents
Preface
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
2. Working with Text and Numbers
Text
Numbers
Variables
Chapter Summary
Exercises
3. Making Decisions and Repeating Yourself
Understanding true and false
Making Decisions
Building Complicated Decisions
Repeating Yourself
Chapter Summary
Exercises
4. Working with Arrays
Array Basics
Looping Through Arrays
Modifying Arrays
Sorting Arrays
Using Multidimensional Arrays
Chapter Summary
Exercises
5. Functions
Declaring and Calling Functions
Passing Arguments to Functions
Returning Values from Functions
Understanding Variable Scope
Chapter Summary
Exercises
6. Making Web Forms
Accessing Form Parameters
Form Processing with Functions
Validating Data
Displaying Default Values
Putting It All Together
Chapter Summary
Exercises
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
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
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
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
11. Parsing and Generating XML
Parsing an XML Document
Generating an XML Document
Chapter Summary
Exercises
12. Debugging
Controlling Where Errors Appear
Fixing Parse Errors
Inspecting Program Data
Fixing Database Errors
Chapter Summary
Exercises
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
A. Installing and Configuring the PHP Interpreter
B. Regular Expression Basics
C. Answers To Exercises
Index
About the Author
David Sklar is an independent consultant specializing in software
development, strategic planning, and technical training. 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.
He is the author of Essential PHP Tools (Apress) and the coauthor of
PHP Cookbook (O'Reilly).
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.
|