Specifications

code
814
HTML
file upload, 353
files, catching, 354-356
indenting, 39, 465-466
line graphs, script for
outputting, 405
logic, 471
separating from
content, 472
naming conventions, 463
function names, 464
modular names, 464
variable names,
463-464
optimizations, 472-473
Zend Optimizer, 473
poll database, setting up,
420-421
prototypes, 471
reusing. See reusing code
rewriting, 462-463
standards, 463
testing, 474-475
users, casting votes,
420-421
version control, 467-468
CVS (Concurrent
Versions System), 468
multiple programmers,
468
repository, 467-468
vote database
retrieving results,
422-423
updating, 422-423
writing, 463
maintainability,
463-467
writing for classes,
159-168
attributes, 159-160
functions, 160-161
meta tags, 160
operations, 161
Page class code listing,
161-165
ServicesPage class,
166-167
TLA Consulting home
page, generating,
165-166
code blocks, 38-39, 142-
143
code listings
authentication
basic authentication
with Apaches .htac-
cess files, 316, 318
htaccess file for
authenticating users
against a MySQL
database, 323
PHP and HTTP basic
authentication, 314
queries that create auth
database, auth table,
and sample users,
310
simple authentication
mechanism, 306
storing usernames and
passwords in data-
bases, 308
authentication application
authmain.php script,
440
logout.php script, 444
members_only.php
script, 443
Book-O-Rama application
HTML for Book Entry
Page, 238
script that writes new
books into database,
239
Book-O-Rama Database
Search page, 229
classes
Page class, 161, 166
ServicesPage class, 166
directory submission
forms, 374
generating Bobs Freight
Table with PHP, 45
HTML for Bobs Auto
Parts order form, 12
HTML for Bobs Freight
Table, 43
HTML form to send
encrypted email, 343
HTML that produces TLA
Consultings home page,
122
loading arrays from files,
85
MySQL database, retriev-
ing search results, 230
pages to dump contents of
variables for debugging,
487-488
PHP that produces TLA
Consultings home page,
124
recursion, 143
reordering arrays, 83
script declares custom
error handler, 493
script that retrieves stock
quote from NASDAQ,
372
script that works out a per-
sons age based on birth-
date, 398
script to download new
versions of a file from an
FTP server, 379
script to email form
contents, 94
40 7842 index 3/6/01 4:22 PM Page 814