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.

<strong>PHP</strong>_FE() macro, 322<br />

phpinfo() function, 10, 432<br />

checking for database support, 190<br />

GD extension, information on, 215<br />

php.ini file<br />

directives recommended for production<br />

systems, 286<br />

disable_functions option, 295<br />

extension INI entries, 347<br />

maximum size (in bytes) for file<br />

uploads, 290<br />

memory_limit directive, 331<br />

safe_mode directive, 292<br />

session information storage,<br />

customizing, 185<br />

track_errors option, 304<br />

variables_order directive, 287<br />

<strong>PHP</strong>_INI_MH() prototype macro, 348<br />

php_logo_guid() function, 431<br />

<strong>PHP</strong>_MINIT_FUNCTION(), 348<br />

php_sapi_name() function, 431<br />

$<strong>PHP</strong>_SELF variable (current script<br />

name), 160<br />

php_uname() function, 431<br />

phpversion() function, 432<br />

PI (Process Instruction) XML tag, 58<br />

pi() function, 432<br />

pipes, 359<br />

opening to process executed by shell<br />

command, 432<br />

pixels<br />

checking color index for, 230<br />

setting color for, 220<br />

placeholders<br />

for database query values, 198<br />

XML entities as, 268<br />

platform, testing for, 355<br />

PNG image format, 216<br />

black square on white background<br />

(example), 217<br />

changing to JPEG, 219<br />

output function for, 218<br />

in PDF files, 246<br />

polygons, drawing, 220<br />

popen() function, 432<br />

security risks, 295<br />

portability<br />

database-specific extensions and, 189<br />

optimizing database connections for, 194<br />

Portable Document Format (see PDF)<br />

pos() function, 433<br />

496 | Index<br />

position of smaller string within larger<br />

string, 93<br />

positioning<br />

cursor in PDF text, 239<br />

images in PDF documents, 247<br />

text in PDF files, 239<br />

positions in indexed arrays, 116<br />

positive lookahead and lookbehind<br />

assertions, 108<br />

POSIX-style regular expressions, 99–103<br />

anchors in, 100<br />

functions for, 101<br />

matching, 101–103<br />

replacing, 103<br />

splitting strings, 103<br />

$_POST array, 11<br />

accessing form parameters, 163<br />

POST method (HTTP), 159<br />

in form processing, 162<br />

global variables for, controlling, 287<br />

$HTTP_POST_VARS array, 160<br />

quotes state for operations, 407<br />

sending XML-RPC request via, 282<br />

XML-RPC request, constructing for, 283<br />

PostgreSQL extension, 466<br />

post_max_size configuration option, 290<br />

PostScript font metrics, 244<br />

pow() function, 433<br />

precedence, operator, 34, 36<br />

associativity and, 36<br />

two basic rules for, 36<br />

precision specifier for floating-point<br />

numbers, 77<br />

preferences<br />

for page colors (see color; cookies)<br />

session, saving across requests, 187<br />

using from sessions, 184<br />

preg_match() function, 110<br />

preg_quote() function, 115<br />

preg_replace() function, 112<br />

calling eval() with /e option, 295<br />

preg_split() function, 114<br />

prepare() method, 198<br />

prev() function, 126, 433<br />

print() function, 76, 433<br />

printf() function, 76, 434<br />

format modifiers, 76<br />

type specifier, 77<br />

printing<br />

error messages, 306<br />

strings, 75–79<br />

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

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!