05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

uncompressing and extracting <strong>PHP</strong> and<br />

Apache distributions, 8<br />

underlining text in PDF files, 241<br />

Unicode<br />

character encodings supported by XML<br />

parser, 270<br />

FriBiDi extension, reordering strings for<br />

encoded character set, 461<br />

union of two sets, 137<br />

uniqid() function, 453<br />

Unix<br />

installing <strong>PHP</strong>, 7–9<br />

locale system in POSIX-style regular<br />

expressions, 99<br />

protocol for databases, 194<br />

shell scripting languages, comments<br />

in, 19<br />

writing portable <strong>PHP</strong> code for, 355–359<br />

determining the platform, 355<br />

end-of-file handling, 358<br />

end-of-line handling, 358<br />

environment information, 356<br />

extensions, 359<br />

paths, handling, 356<br />

remote files, 357<br />

sending mail, 356<br />

server-specific functions, 356<br />

shell commands, 359<br />

unlink() function, 62, 453<br />

unpack() function, 453<br />

unpacking Apache and <strong>PHP</strong> source<br />

distributions, 8<br />

unparsed XML entities, 268<br />

unregister_tick_function() function, 454<br />

unserialize() function, 454<br />

unset() function, 34, 454<br />

uploaded files<br />

information about, 160<br />

moving, 424<br />

uploading files, 172<br />

security and, 289<br />

distrusting browser-supplied<br />

filenames, 289<br />

URL rewriting, storing state<br />

information, 178<br />

urldecode() function, 85<br />

urlencode() function, 85, 224, 454<br />

URLs<br />

decomposing (parse_url() function), 95<br />

encoding/decoding, 435<br />

504 | Index<br />

encoding/decoding strings as, 84<br />

button strings, 224<br />

extracting from HTML page, 111<br />

functions for, 377<br />

GET and POST requests, 162<br />

https://, 188<br />

opening remotely with <strong>PHP</strong> functions,<br />

security risks of, 288<br />

parse_url() function, 430<br />

session IDS, passing via, 184<br />

US-ASCII (see ASCII)<br />

User-Agent headers, 158<br />

user-defined functions, 61<br />

sorting arrays with, 452, 455<br />

user-defined order, sorting arrays in, 130,<br />

131–133<br />

user_error() function, 454<br />

usernames<br />

authenticating, 177<br />

current, for <strong>PHP</strong> script executing, 406<br />

security problems with, 287<br />

usleep() function, 455<br />

usort() function, 130, 455<br />

anonymous function, using with, 71<br />

UTF-8 character encoding, 270<br />

printing high-bit ASCII characters, 222<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.<br />

V<br />

validating<br />

credit-card numbers, with Luhn<br />

checksum, 101<br />

forms, 173–175<br />

var_dump() function, 455<br />

displaying <strong>PHP</strong> values in human-readable<br />

form, 79<br />

variable argument list, processing, 337<br />

variable functions, 70<br />

variables, 30–33<br />

assigning values to, 44<br />

case-sensitivity in names, 17<br />

checking values with isset() function, 34,<br />

418<br />

configuration, getting, 405<br />

converting HTML field names to, 163<br />

converting to/from arrays, 124<br />

creating for extensions, 345–347<br />

defined, getting, 406<br />

EGPCS (environment, GET, POST, cookie<br />

and server), 159, 287<br />

expanding in double-quoted strings, 25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!