1300 187 187
 
Learning PHP 5 : LEARNING - David F. Sklar

Learning PHP 5

LEARNING

Paperback

Published: 1st June 2004
Ships: 10 to 14 business days
10 to 14 business days
RRP $59.95
$35.40
41%
OFF

eBook View Product

Published: 16th October 2007
Format: PDF
RRP $30.79
$27.50
11%
OFF

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.

Prefacep. xi
Orientation and First Stepsp. 1
PHP's Place in the Web Worldp. 1
What's So Great About PHP?p. 4
PHP in Actionp. 6
Basic Rules of PHP Programsp. 11
Chapter Summaryp. 15
Working with Text and Numbersp. 16
Textp. 16
Numbersp. 25
Variablesp. 27
Chapter Summaryp. 31
Exercisesp. 32
Making Decisions and Repeating Yourselfp. 33
Understanding true and falsep. 34
Making Decisionsp. 35
Building Complicated Decisionsp. 37
Repeating Yourselfp. 43
Chapter Summaryp. 46
Exercisesp. 46
Working with Arraysp. 48
Array Basicsp. 48
Looping Through Arraysp. 52
Modifying Arraysp. 57
Sorting Arraysp. 60
Using Multidimensional Arraysp. 63
Chapter Summaryp. 66
Exercisesp. 67
Functionsp. 69
Declaring and Calling Functionsp. 70
Passing Arguments to Functionsp. 71
Returning Values from Functionsp. 74
Understanding Variable Scopep. 78
Chapter Summaryp. 82
Exercisesp. 82
Making Web Formsp. 84
Accessing Form Parametersp. 88
Form Processing with Functionsp. 90
Validating Datap. 93
Displaying Default Valuesp. 103
Putting It All Togetherp. 105
Chapter Summaryp. 112
Exercisesp. 112
Storing Information with Databasesp. 114
Organizing Data in a Databasep. 115
Connecting to a Database Programp. 117
Creating a Tablep. 119
Putting Data into the Databasep. 121
Inserting Form Data Safelyp. 126
Generating Unique IDsp. 127
A Complete Data Insertion Formp. 128
Retrieving Data from the Databasep. 131
Changing the Format of Retrieved Rowsp. 136
Retrieving Form Data Safelyp. 138
A Complete Data Retrieval Formp. 141
MySQL Without PEAR DBp. 145
Chapter Summaryp. 148
Exercisesp. 149
Remembering Users with Cookies and Sessionsp. 151
Working with Cookiesp. 152
Activating Sessionsp. 156
Storing and Retrieving Informationp. 157
Configuring Sessionsp. 160
Login and User Identificationp. 161
Why setcookie() and session_start() Want to Be at the Top of the Pagep. 167
Chapter Summaryp. 168
Exercisesp. 169
Handling Dates and Timesp. 170
Displaying the Date or Timep. 170
Parsing a Date or Timep. 175
Dates and Times in Formsp. 176
Displaying a Calendarp. 186
Chapter Summaryp. 190
Exercisesp. 190
Working with Filesp. 192
Understanding File Permissionsp. 192
Reading and Writing Entire Filesp. 193
Reading and Writing Parts of Filesp. 197
Working with CSV Filesp. 200
Inspecting File Permissionsp. 203
Checking for Errorsp. 204
Sanitizing Externally Supplied Filenamesp. 206
Chapter Summaryp. 208
Exercisesp. 208
Parsing and Generating XMLp. 210
Parsing an XML Documentp. 211
Generating an XML Documentp. 217
Chapter Summaryp. 219
Exercisesp. 219
Debuggingp. 221
Controlling Where Errors Appearp. 221
Fixing Parse Errorsp. 222
Inspecting Program Datap. 226
Fixing Database Errorsp. 229
Chapter Summaryp. 230
Exercisesp. 230
What Else Can You Do with PHP?p. 232
Graphicsp. 232
PDFp. 233
Shockwave/Flashp. 234
Browser-Specific Codep. 236
Sending and Receiving Mailp. 236
Uploading Files in Formsp. 237
The HTML_QuickForm Form-Handling Frameworkp. 239
Classes and Objectsp. 242
Advanced XML Processingp. 244
SQLitep. 247
Running Shell Commandsp. 248
Advanced Mathp. 249
Encryptionp. 250
Talking to Other Languagesp. 251
IMAP, POP3, and NNTPp. 251
Command-Line PHPp. 253
PHP-GTKp. 253
Even More Things You Can Do with PHPp. 254
Installing and Configuring the PHP Interpreterp. 255
Regular Expression Basicsp. 280
Answers To Exercisesp. 296
Indexp. 335
Table of Contents provided by Ingram. All Rights Reserved.

ISBN: 9780596005603
ISBN-10: 0596005601
Series: LEARNING
Audience: Professional
Format: Paperback
Language: English
Number Of Pages: 370
Published: 1st June 2004
Dimensions (cm): 23.3 x 17.9  x 1.96
Weight (kg): 0.59