|
protected methods or properties, 192–193
publications. See alsoWeb sites
about computers, 25
about HTML, 3
about JavaScript, 244
about PHP with MySQL, 203
about SQL, 265
putenv
function, 370, 376
• Q •
queries. SeeSQL
question mark (?), 134, 227
quotes, (“ double) and (‘ single)
enclosing numbers in mathematical
operations, 76
enclosing strings, 55, 59–60, 82–84
escaped characters in, 84
escaping with backslash (\), 342
magic quotes, enabling, 342
in mathematical operations, 76
special characters in, 82
using incorrectly, 323
variables in, 59–60, 82, 83–84
• R •
radio buttons, 208
rand
function, 368
range
function, 99–100, 358
Ray, Deborah S. and Ray, Eric J. (HTML 4
For Dummies, Quick Reference), 3
RDBMS (Relational Database Management
System), 259. See alsodatabases
readdir
function, 284–285, 365
readfile
function, 365
register_globals
setting in
php.ini
file,18
register_long_arrays
setting in
php.ini
file, 123
regular expressions. Seepattern matching
Relational Database Management System.
SeeRDBMS
remainder. Seemodulus operator
rename
function, 282, 365
$_REQUEST
built-in array, 124, 211, 228
require
statement, 159
require_once
statement, 159, 314
reset
function, 108, 358
return
statement, 163–165, 171–173
reusing code
including files, 158–162
reasons for, 157
using built-in functions, 174
writing functions, 162–173
rewind
function, 365
rmdir
function, 365
root
directory, 279
round
function, 369
RPM format for PHP installation, 333–334
rsort
function, 104, 358
rtrim
function, 86, 253, 374
• S •
s
formatting instruction, 90
safe_mode
setting, disabling backtick
operator, 288
ScriptAlias
statement, 351
scripting language, PHP used as, 14, 15,
30–31. See also
php
program; scripts
scripts
adding to Web pages, 38–40
building, 37–42
definition of, 35
documenting (comments in), 48–50
error checking for, 42
error level for, 69–70
file extensions for, 15, 21
IDEs for, 33–34, 329
including files into, 158–162
line numbers for, 36
processing of, 45–46
program editors for, 32–33, 329
running with CLI, 40–42
specifying on command line, 42
variables passed into, 125–126
viewing source in browser, 44
Secure Sockets Layer. SeeSSL
security
of Apache Web server, 26
bugs in PHP versions prior to 4.3.1, 22
of data entered by users, 202, 213–222, 291
of databases, 248, 262
features for, 11
of files, 201–202
of host computer, 200–201
of included files, 160–161
388
PHP 5 For Dummies
|