Table of contents for PHP phrasebook : essential code and commands / Christian Wenz.


Bibliographic record and links to related information available from the Library of Congress catalog
Note: Electronic data is machine generated. May be incomplete or contain other coding.


Counter
1  Manipulating Strings                       5
Comparing Strings                          6
Checking Usernames ana rassworas           7
Converting Strings into Hypertext Markup
Language (HTML)                            9
Using Line Breaks,                        11
Encrypting Strings                        12
Checksumming Strings                      13
Extracting Substrings                     16
Protecting Email Addresses Using ASCII Codes  17
Scanning Formatted Strings                21
Getting Detailed Information About Variables  22
Searching in Strings                      23
Using POSIX Regular Expressions           26
Using PerI-Compatible Regular Expressions  28
Finding Tags with Regular Expressions     29
Validating Mandatory Input                30
Validating Numbers (and Other Data Types)  31
Validating Email Addresses                32
Search and Replace                        34
2  Working with Arrays                       37
Accessing All Elements of Numerical Arrays  39
Accessing All Elements of Associative Arrays  40
Accessing Al Array Elements in Nested Arrays  41
Turning an Array into Variables           44
Converting Strings to Arrays             45
Converting Arrays to Strings             46
Sorting Arrays Alphabetically            47
Sorting Associative Arrays Alphabetically  48
Sorting Nested Arrays                    50
Sorting Nested Associative Arrays        52
Sorting IP Addresses (as a Human Would)  54
Sorting Anything                         55
Sorting with Foreign Languages           56
Applying an Effect to All Array Elements  58
Filtering Arrays                         61
Getting Random Elements Out of Arrays    62
3Date and Time                           65
Using Text Within date()                 68
Automatically Localizing Dates           69
Manually Localizing Dates                72
Using the Current Date the U.S./U.K./
European Way                             73
Formatting a Specific Date               74
Validating a Date                        76
Calculating a Relative Date              76
Creating a Sortable Time Stamp           78
Converting a String into a Date          79
Determining Sunrise and Sunset           80
Using Date and Time for Benchmarks       82
Using Form Fields for Date Selection     84
Create Self-updating Form Fields for
Date Selection                           85
Calculating the Difference Between Two Dates  88
Using GMT Date/Time Information          90
4  Interacting with Web Forms                91
Sending Form Data Back to the Current Script  92
Reading Out Form Data                     93
Coping with "Magic Quotes"                95
Checking Whether a Form Has Been Submitted 97
Saving Form Data into a Cookie            98
Prefilling Text Fields and Password Fields  101
Prefilling Multiline Text Fields         104
Preselecting Radio Buttons               105
Preselecting Check Boxes                 107
Preselecting Selection Lists             108
Preselecting Multiple Selection Lists    110
Processing Graphical Submit Buttons      113
Checking Mandatory Fields                114
Checking Selection Lists                 116
Writing All Form Data into a File        119
Sending All Form Data Via Email          121
Getting Information About File Uploads   123
Moving Uploaded Files to a Safe Location  126
5  Remembering Users (Cookies and Sessions)  129
Understanding Cookies                    130
Creating a Cookie                        132
Reading Out Cookies                      133
Getting Rid of "Magic Quotes" in Cookies  135
Setting a (Reasonable) Expiry Date       136
Setting a Client-Specific Expiry Date    137
Deletinga Cookie                         139
Main Cooking  es Accessible for Several Domains 140
Checking Whether the Client Supports Cookies 142
Saving Multiple Data in One Cookie      144
Saving the User's Language Preference   146
Understanding Sessions                  148
Where to Store the Sessions             149
How to Maintain the Session State       150
Activating Sessions                      151
Reading and Writing Sessions            152
Closing Sessions                        153
Changing the Session ID                 154
Creating Dynamic, Session-Aware Links   156
Implementing a Custom Session Management 157
Creating a Secured Area with Sessions   163
Creating a Secured Area Without Sessions  165
6  Using Files on the Server File System   169
Opening and Closing Files               170
Reading from Files                      174
Writing to Files                        175
Locking Files                           178
Using Relative Paths for File Access    179
Avoiding Security Traps with File Access  180
Working with CSV Data                   181
Parsing INI Files                       185
Retrieving File Information             187
Copying, Moving, and Deleting Files     189
Browsing the File System                191
Using PHP Streams                       192
Using Bzip2 Archives                    194
Returning Files with an HTTP Request    196
7  Making Data Dynamic                     199
Connecting to MySQL                     201
Connecting to MySQLi                    202
Sending SQL to MySQL                    203
Prepared Statements with MySQL          206
Retrieving Results of a Query to MySQL  208
Connecting to SQLite                    211
Sending SQL to SQLite                   213
Retrieving Results of a Query to SQLite  214
Connecting to PostgreSQL                216
Sending SQL to PostgreSQL               217
Updating Data in PostgreSQL             218
Retrieving Results of a Query to PostgreSQL  219
Connecting to Oracle                    221
Sending SQL to Oracle                   222,
Retrieving Results of a Query to Oracle  224
Connecting to MSSQL                     226
Sending SQL to MSSQL                    228
Retrieving Results of a Query to MSSQL  229
Connecting to Firebird.                 231
Sending SQL to Firebird                 232
Retrieving Results of a Query to Firebird,  233
Connecting Via PDO                      234
Sending SQL Via PDO                     236
Retrieving Results of ' Query Via PDO   237
8  Using XML                               241
Parsing XML with SAX                 .  242
Using DOM in PHP 4 to Read XML          245
Using DOM in PHP 5 to Read XML          246
Using DOM in PHP 4 to Write XML        248
Using DOM in PHP 5 to Write XML        249
Using SimpleXML                        250
Transforming XML with XSL and PHP 4     252
Transforming XML with XSL and PHP 5    253
Validating XML                          254
9  Communicating with Others              257
Connecting with HTTP Servers            257
Connecting with FTP Servers             260
Checking Whether a Server Is Still Reacting  263
Creating a Web Service with PEAR::
XML-RPC                                266
Consuming a Web Service with PEAR::
XML-RPC                                268
Creating a Web Service with NuSOAP     270
Automatically Generating WSDL with NuSOAP 271
Consuming a Web Service with NuSOAP    274
Creating a Web Service with PEAR::
SOAP                                   276
Automatically Generating WSDL with PEAR::
SOAP                                   277
Consuming a Web Service with PEAR::
SOAP                                   279
Creating a Web Service with PHP 5's SOAP
Extension                              280
Consuming a Web Service with PHP 5's
SOAP Extension                         283



Library of Congress subject headings for this publication: PHP (Computer program language)Web sites Design