With PHP for the World Wide Web, Fourth Edition: Visual QuickStart Guide, readers can start from the beginning to get a tour of the programming language, or look up specific tasks to learn just what they need to know. This task-based visual reference guide uses step-by-step instructions and plenty o
PHP for the Web: Visual QuickStart Guide, Third Edition
β Scribed by Ullman, Larry
- Publisher
- Peachpit Press
- Year
- 2009;2008
- Tongue
- English
- Leaves
- 481
- Series
- Visual QuickStart Guide
- Edition
- 3rd edition
- Category
- Library
No coin nor oath required. For personal study only.
β¦ Synopsis
With PHP for the World Wide Web, Third Edition: Visual QuickStart Guide, readers can start from the beginning to get a tour of the programming language, or look up specific tasks to learn just what they need to know. This task-based visual reference guide uses step-by-step instructions and plenty of screenshots to teach beginning and intermediate users this popular open-source scripting language. Leading technology author Larry Ullman guides readers through the new features in PHP 6, focusing primarily on improved support for handling any language in a Web site. Other addressed changes include removal of outdated and insecure features, plus new functions and more efficient ways to tackle common needs. Both beginning users, who want a thorough introduction to the technology, and more intermediate users, who are looking for a convenient reference, will find what they need here--in straightforward language and thorough readily accessible examples.
β¦ Table of Contents
Cover......Page 1
Contents......Page 6
Introduction......Page 10
Chapter 1: Getting Started with PHP......Page 26
Basic XHTML Syntax......Page 27
Basic PHP Syntax......Page 32
Testing Your Script......Page 35
Sending Text to the Browser......Page 41
Sending HTML to the Browser......Page 45
Using White Space......Page 47
Adding Comments to Scripts......Page 50
Basic Debugging Steps......Page 53
Chapter 2: Variables......Page 56
What Are Variables?......Page 57
Variable Syntax......Page 61
Types of Variables......Page 63
Assigning Values to Variables......Page 66
Understanding Quotation Marks......Page 69
Chapter 3: HTML Forms and PHP......Page 72
Creating a Simple Form......Page 73
Using GET or POST......Page 77
Receiving Form Data in PHP......Page 79
Displaying Errors......Page 84
Error Reporting......Page 87
Manually Sending Data to a Page......Page 90
Chapter 4: Using Numbers......Page 96
Creating the Form......Page 97
Performing Arithmetic......Page 100
Formatting Numbers......Page 105
Understanding Precedence......Page 107
Incrementing and Decrementing a Number......Page 109
Creating Random Numbers......Page 111
Chapter 5: Using Strings......Page 114
Creating the HTML Form......Page 115
Connecting Strings (Concatenation)......Page 118
Handling Newlines......Page 122
HTML and PHP......Page 124
Encoding and Decoding Strings......Page 128
Finding Substrings......Page 133
Replacing Parts of a String......Page 137
Chapter 6: Control Structures......Page 140
Creating the HTML Form......Page 141
The if Conditional......Page 146
Validation Functions......Page 149
Using else......Page 152
More Operators......Page 155
Using elseif......Page 163
The Switch Conditional......Page 167
The for Loop......Page 171
Chapter 7: Using Arrays......Page 176
What Is an Array?......Page 177
Creating an Array......Page 179
Adding Items to an Array......Page 183
Accessing Array Elements......Page 186
Creating Multidimensional Arrays......Page 190
Sorting Arrays......Page 195
Transforming Between Strings and Arrays......Page 199
Creating an Array from a Form......Page 204
Chapter 8: Creating Web Applications......Page 210
Creating Templates......Page 211
Using External Files......Page 219
Using Constants......Page 225
Working with the Date and Time......Page 230
Handling HTML Forms with PHP, Revisited......Page 233
Making Forms Sticky......Page 239
Sending Email......Page 247
Output Buffering......Page 252
Manipulating HTTP Headers......Page 256
Chapter 9: Cookies and Sessions......Page 262
What Are Cookies?......Page 263
Creating Cookies......Page 266
Reading from Cookies......Page 273
Adding Parameters to a Cookie......Page 279
Deleting a Cookie......Page 284
What Are Sessions?......Page 287
Creating a Session......Page 288
Accessing Session Variables......Page 292
Deleting a Session......Page 294
Chapter 10: Creating Functions......Page 296
Creating and Using Simple Functions......Page 297
Creating and Calling Functions That Take Arguments......Page 304
Setting Default Argument Values......Page 308
Creating and Using Functions That Return a Value......Page 311
Understanding Variable Scope......Page 316
Chapter 11: Files and Directories......Page 322
File Permissions......Page 323
Writing to Files......Page 328
Locking Files......Page 336
Reading from Files......Page 339
Handling File Uploads......Page 342
Navigating Directories......Page 350
Creating Directories......Page 356
Reading Files Incrementally......Page 364
Chapter 12: Intro to Databases......Page 370
Introduction to SQL......Page 371
Connecting to MySQL......Page 373
MySQL Error Handling......Page 377
Creating and Selecting a Database......Page 380
Creating a Table......Page 383
Inserting Data into a Database......Page 388
Securing Query Data......Page 393
Retrieving Data from a Database......Page 396
Deleting Data in a Database......Page 402
Updating Data in a Database......Page 408
Chapter 13: Regular Expressions......Page 416
What Are Regular Expressions?......Page 417
Matching Patterns......Page 419
Using Literals......Page 424
Using Metacharacters......Page 425
Using Quantifiers......Page 427
Using Classes......Page 429
Matching and Replacing Patterns......Page 431
Appendix A: Installation and Configuration......Page 436
Installation on Windows......Page 437
Installation on Mac OS X......Page 440
Using the MySQL Client......Page 444
Creating MySQL Users......Page 447
PHP Configuration......Page 453
Appendix B: Resources and Next Steps......Page 456
Online PHP Resources......Page 457
Database Resources......Page 460
Top Ten Frequently Asked Questions (or Problems)......Page 461
Next Steps......Page 465
Tables......Page 467
C......Page 470
D......Page 471
F......Page 472
L......Page 473
O......Page 474
P......Page 475
S......Page 476
V......Page 478
YβZ......Page 479
β¦ Subjects
Computer Science;Programming;Reference;Nonfiction;Design;Website Design;Computers;Technical;Internet;Web;Science;Technology;Software
π SIMILAR VOLUMES
With PHP for the World Wide Web, Fourth Edition: Visual QuickStart Guide, readers can start from the beginning to get a tour of the programming language, or look up specific tasks to learn just what they need to know. This task-based visual reference guide uses step-by-step instructions and plenty o
<b>Learn PHP programming the quick and easy way!</b> <div> <br> </div> <div>With <b>PHP for the Web: Visual QuickStart Guide</b>Β readers can start from the beginning to get a tour of the programming language, or look up specific tasks to learn just what they need to know.Β <div> <br> </div> <div>This
Learn PHP programming the quick and easy way! With PHP for the Web: Visual QuickStart Guide readers can start from the beginning to get a tour of the programming language, or look up specific tasks to learn just what they need to know. This task-based visual reference guide uses step-by-step inst
Beginner to intermediate level self-study guide on PHP for the World Wide Web. Takes a visual approach, offering readers step-by-step instructions with illustrations and screen shots to clarify procedures. Includes a companion Web site which features the code for the text, updates, and online resour
Python is a remarkably powerful dynamic programming language used in a wide variety of situations such as Web, database access, desktop GUIs, game and software development, and network programming. Fans of Python use the phrase "batteries included" to describe the standard library, which covers ever