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.

calling, 61<br />

for each array element, 128<br />

case-insensitivity in names, 17<br />

change-handling, for INI entries, 347<br />

changing case of strings, 81<br />

classes and objects, 375<br />

constructor, 146<br />

converting arrays to/from variables, 124<br />

data type, 377<br />

date and time, 375<br />

defined, getting names of, 406<br />

defining, 62–64<br />

nested declarations, 64<br />

disabling for security reasons, 295<br />

drawing basic images, 220<br />

errors and logging, 375<br />

exposing as XML-RPC methods, 281<br />

extension<br />

accessing internal <strong>PHP</strong> global<br />

variable, 343–345<br />

creating variables, 345–347<br />

memory management, 329–331<br />

parameter handling, 335–337<br />

returning, 338–341<br />

files, directories, and filesystem, 376<br />

global scope, 32<br />

iterator, 126<br />

building tables with, 127<br />

local scope, 31<br />

mail, 376<br />

math, 376<br />

names of, 22<br />

network, 376<br />

object introspection, 148<br />

sample program, 150–153<br />

output, 376<br />

parameters, 33, 66–69<br />

default, 67<br />

missing, 69<br />

passing by reference, 66<br />

passing by value, 66<br />

variable number of, 68<br />

Perl-style regular expressions, 110–115<br />

additional <strong>PHP</strong> flags, 107<br />

preg_match(), 110<br />

preg_quote(), 115<br />

preg_replace(), 112<br />

preg_split(), 114<br />

<strong>PHP</strong> for Apache server, 356<br />

<strong>PHP</strong> interface into COM, 360<br />

<strong>PHP</strong> options/info, 376<br />

for POSIX-style regular expressions, 101<br />

replacing text, 103<br />

program execution, 377<br />

resources within, automatic cleanup<br />

of, 29<br />

returning values from, 63<br />

side effects of, 62, 67<br />

sorting arrays, 28<br />

strings, 89–95, 377<br />

comparing, 87<br />

exploding and imploding, 91<br />

padding, 91<br />

repeating, 91<br />

reversing, 90<br />

search functions, 93–95<br />

substrings, 89<br />

tokenizing, 92<br />

text in PDF files, 239–241<br />

tick, unregistering, 454<br />

for URLs, 377<br />

variable, 70<br />

for variables, 377<br />

variable scope, 64–66<br />

global, accessing from within<br />

functions, 65<br />

static variables, 65<br />

(see also methods)<br />

fwrite() function, 404<br />

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

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

G<br />

garbage collection, 33<br />

handler for sessions, 187<br />

resources, 29<br />

GD extension<br />

color handling, 228–232<br />

drawing functions, 220<br />

drawing primitives, 218<br />

fonts, 221–223<br />

TrueType, 221<br />

GD graphics library (open source), 215<br />

generating<br />

images, steps in process, 217<br />

XML, 264<br />

$_GET array, 11, 165<br />

accessing form parameters, 163<br />

GET method (HTTP), 158, 159<br />

controlling global variables with the<br />

variables_order directive, 287<br />

in form processing, 162<br />

$HTTP_GET_VARS array, 160<br />

quotes state for operations, 407<br />

Index | 485

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

Saved successfully!

Ooh no, something went wrong!