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.

pdf_open_file() function, 234<br />

pdf_place_image() function, 247<br />

pdf_rect() function, 249, 250<br />

pdf_restore() function, 254<br />

pdf_save() function, 254<br />

pdf_scale() function, 239<br />

pdf_set_border_style() function, 258<br />

pdf_setcolor() function, 242<br />

pdf_set_info() function, 235<br />

pdf_set_parameter() function, 235, 240, 244<br />

pdf_set_textpos() function, 239<br />

pdf_show() function, 239<br />

pdf_show_boxed() function, 240<br />

pdf_stroke() function, 250<br />

pdf_translate() function, 239<br />

PEAR (<strong>PHP</strong> Extension and Application<br />

Repository) DB library, 2<br />

accessing databases with, 189, 192<br />

advanced techniques, 197<br />

database performance and, 189<br />

fetching data from query results, 195<br />

installing, 9<br />

methods providing information on query<br />

results, 200<br />

transactions, methods for, 202<br />

percentages, formatting for printf()<br />

output, 78<br />

performance tuning, 308–316<br />

benchmarking, 309–311<br />

debugging extensions and, 330<br />

optimizing execution time, 312<br />

optimizing memory requirements, 312<br />

profiling, 311<br />

reverse proxies and replication, 313–316<br />

load balancing and redirection, 314<br />

MySQL replication, 315<br />

Perl regular expressions, 103–115<br />

anchors, 105<br />

backreferences, 106<br />

character classes, 105<br />

conditional expressions, 110<br />

cut subpattern, 109<br />

delimiters, 104<br />

differences in <strong>PHP</strong> implementation, 115<br />

flags (trailing options), 107<br />

inline options, 108<br />

lookahead and lookbehind<br />

assertions, 108<br />

match behavior, 104<br />

non-capturing groups, 106<br />

<strong>PHP</strong> functions for, 110–115<br />

quantifiers and greed, 105<br />

permissions<br />

chmod() function, 387<br />

file, 291<br />

umask() function, 453<br />

persistence, database connections, 194<br />

Personal Web Server (see PWS)<br />

pfsockopen() function, 431<br />

<strong>PHP</strong><br />

building with support for databases, 190<br />

configuration page, creating, 10<br />

databases (see databases)<br />

download site for most recent<br />

version, 351<br />

forms, 10<br />

Function Entry macro, 322<br />

graphics, 13–15<br />

history of, 2–7<br />

Version 1, 2<br />

Version 2, 4<br />

Version 3, 5<br />

Version 4, 6<br />

info/options, functions for, 376<br />

installing, 7–9<br />

language, 17–60<br />

comments, 19–21<br />

data types, 23–28<br />

embedding in web pages, 56–60<br />

expressions and operators, 34–46<br />

flow-control statements, 46–54<br />

garbage collection, 33<br />

identifiers, 21<br />

including code, 54–56<br />

keywords, 23<br />

lexical structure, 17–23<br />

literals, 21<br />

resources, 29<br />

statements and semicolons, 17<br />

variables, 30–33<br />

whitespace and line breaks, 18<br />

prepackaged Windows distributions<br />

of, 354<br />

shell-based program, creating, 15–16<br />

tags, removing from strings, 447<br />

tags (for <strong>PHP</strong> code), 10<br />

<strong>PHP</strong> Extension and Application Repository<br />

(see PEAR)<br />

<strong>PHP</strong> installer, automatic configuration<br />

with, 353<br />

<strong>PHP</strong>_ADD_INCLUDE() macro, 329<br />

<strong>PHP</strong>_ADD_LIBRARY_WITH_PATH()<br />

macro, 329<br />

phpcredits() function, 431<br />

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

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

Index | 495

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

Saved successfully!

Ooh no, something went wrong!