05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

egister_globals (php.ini file)<br />

disabling for security purposes, 286<br />

security of global variables, 285<br />

register_shutdown_function(), 436<br />

register_tick_function(), 437<br />

regular expressions, 95–115<br />

alternatives in, 98<br />

character classes, 97<br />

manipulating strings with, 442<br />

patterns, types of, 96<br />

Perl-compatible, 103–115<br />

anchors, 105<br />

backreferences, 106<br />

character classes, 105<br />

conditional expressions in, 110<br />

cut subpattern, 109<br />

delimiters, 104<br />

flags (trailing options), 107<br />

functions for working with, 110–115<br />

inline options, 108<br />

lookahead and lookbehind<br />

assertions, 108<br />

match behavior, 104<br />

non-capturing groups, 106<br />

quantifiers and greed, 105<br />

<strong>PHP</strong>, differences from Perl, 115<br />

POSIX-style, 99–103<br />

anchors, 100<br />

character classes, 99<br />

functions for, 101<br />

quantifiers for repeating patterns, 98<br />

search and replace operations<br />

with ereg() and ereg_replace (), 394<br />

Relational Database Management Systems<br />

(RDBMSs), 190<br />

relative paths<br />

checking for, 288<br />

security problems with, 287<br />

remote files<br />

opening with <strong>PHP</strong> functions, security risks<br />

of, 287<br />

retrieving on Unix and Windows, 357<br />

Remote Procedure Call (RPC), 360<br />

remote servers, YAZ toolkit, 469<br />

removing<br />

array elements, 123<br />

leading or trailing whitespace from<br />

strings, 80<br />

rename() function, 437<br />

repeating sequences, quantifiers for, 98<br />

repeating strings, 91<br />

498 | Index<br />

replacing<br />

characters in strings, 90<br />

matched patterns in strings, 112<br />

matched strings, POSIX regular<br />

expressions, 103<br />

replication<br />

MySQL, 315<br />

reverse proxies and, 313–316<br />

reporting errors, 303<br />

disabling, 304<br />

error-reporting values, 304<br />

turning off entirely, 305<br />

request/response cycle, HTTP<br />

GET requests, 160<br />

request, 158<br />

response, 159<br />

requests, XML-RPC, 282<br />

require construct, 54–56<br />

require() function, 357<br />

opening remote files, security and, 287<br />

require_once construct, 55<br />

require_once() function, 297<br />

reserved words, stdClass, 143<br />

reset() function, 126, 437<br />

resources, 29, 417<br />

handles, returning type of, 408<br />

using in extensions, 349<br />

rest of a string, searches returning, 94<br />

restore_error_handler() function, 306, 437<br />

return statements, 54, 63<br />

return values, extension functions, 338–341<br />

RETVAL_LONG() macro, 338<br />

reverse-proxy caches, 313<br />

reversing<br />

array element order, 134<br />

strings, 90<br />

rewind() function, 437<br />

rewinddir() function, 437<br />

rewrite() function, 302<br />

right shift (>>) operator, 42<br />

right-justified strings, 77<br />

rmdir() function, 437<br />

rollback() method, 202<br />

rot13 extension, 322<br />

rot13() function, 322<br />

round() function, 438<br />

RPC (Remote Procedure Call), 360<br />

rsort() function, 130, 438<br />

RSS document, generating using <strong>PHP</strong>, 264<br />

rtrim() function, 80, 438<br />

runtime errors, 303<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!