|
trim
function, 86, 214, 222, 374
troubleshooting. See alsoerror messages
after installation, 29–30
array numbering, 324–325
error checking scripts, 42
infinite loops, avoiding, 151, 153–154, 156
missing semicolons, 321–322
parentheses and curly braces,
325–326
PHP statements in included file, 325
quotes used incorrectly, 323
single equal sign (=) used in
comparisons,322
statements that must come before
browser output, 225, 324
variable names, 322–323
TRUE values, 74. See alsoBoolean
datatypes
try
statement, 194
TSV (tab-separated values) file, 257–259
type casting, 74–75
• U •
ucfirst
function, 88, 375
ucwords
function, 88, 375
umask
function, 366
underscore (_), 54, 61
Uniform Resource Locator. SeeURL
Unix
installing PHP, 333–338
running scripts using, 40
setting up database support, 263–264
unlink
function, 283, 366
unserialize
function, 376
unset
function, 62, 102–103, 196, 234, 376
upload_tmp_dir
setting in
php.ini
file,
239–240
uppercase letters. Seecase of constant and
variable names
URL (Uniform Resource Locator)
definition of, 14
passing information with, 227–228
prefixed with
https
, 202
user ID for file, 281
user sessions. Seesessions
usort
statement, 105
• V •
Valade, Janet
PHP & MySQL For Dummies, 203, 265
Web site, 330
Vander Veer, Emily A. (JavaScript For
Dummies), 244
var
statement, 184–185
var_dump
function, 75, 100–101, 120, 376
variable variables. Seedynamic variable
names
variables. See alsoconstants; data types;
properties
$this
variable, 185
changing information in, 55–56
checking content of, 133
converting arrays into, 112
converting into arrays, 112–113
creating, 55–56
definition of, 53, 55
deleting when session ends, 234
determining data type of, 75
displaying in HTML forms, 205–207, 208
displaying values in, 56–57, 59–60
dynamic variable names, 60–61
empty, 56–57, 61
evaluation of, in strings, 82–84
example scripts using, 57–58
formatted output in, 80, 89–92, 372
formatting for output, 89–92
functions for, 375–376
global, 166
local, 165–166
missing dollar sign ($) in, 323
misspelled, 322
naming, 53–54
passed into scripts, referencing, 125–126
passing at end of URL, 227–228
passing to functions, 164, 167–171
passing with cookies, 229–231
$PHPSESSID
variable, 232, 235–237
preventing error messages when
displaying, 57
receiving system command output,
288–290
removing information from, 61
returning from functions, 171–173
391
Index
|