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.

financial transactions<br />

CyberMUT extension, 459<br />

Verisign Payflow Pro extension, 466<br />

first character of string, changing case of, 81<br />

flags, pattern modifying<br />

inline options, 108<br />

trailing options, 107<br />

Flash<br />

animations, libswf extension, 328<br />

Ming library for movies, 464<br />

SWF extension for movies, 467<br />

(float) casting operator, 43<br />

floating-point data types, 24<br />

formats in <strong>PHP</strong>, 25<br />

padding for printf() output, 78<br />

precision specifier for, 77<br />

storing in double-precision, 331<br />

flock() function, 400<br />

floor() function, 401<br />

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

declare, 54<br />

exit and return, 54<br />

for, 52<br />

foreach, 53<br />

switch, 48–50<br />

while, 50–52<br />

flush() function, 401<br />

flushing buffers, 301<br />

FontAFM, FontPFM, and FontOutline<br />

settings to pdflib.upr file, 244<br />

fonts, 221–223<br />

GD extension, differences in<br />

versions, 222<br />

in PDF files, 243–246<br />

built-in, 244<br />

embedding, 244–246<br />

setting, 236<br />

TrueType, using with GD, 221<br />

fopen() function, 401<br />

file permissions and, 291<br />

opening remote files with, security<br />

and, 287<br />

for loops, 52<br />

traversing arrays with, 127<br />

foreach loops, 53<br />

accessing sorted array ordering, 131<br />

arrays<br />

looping across, 27<br />

traversing with, 125<br />

formatted strings, printing, 76<br />

format modifiers, 76<br />

formatting error messages, 306<br />

484 | Index<br />

forms<br />

creating and processing (example), 10<br />

Forms Data Format (FDF) library, 461<br />

global variables and, security of, 285–287<br />

setting variables_order in php.ini, 287<br />

hidden fields<br />

state information in, 178<br />

storing session IDs in, 184<br />

preference selection for page colors, 180<br />

processing, 162–175<br />

file uploads, 172<br />

GET and POST methods, 162<br />

multi-valued parameters, 168–170<br />

parameters, 163<br />

quoting parameters automatically, 164<br />

self-processing pages, 165–167<br />

sticky forms, 167<br />

sticky multi-valued parameters, 170<br />

validation, 173–175<br />

sending over secure connections, 188<br />

user input, HTML template for, 298<br />

fpassthru() function, 402<br />

fputs() function, 402<br />

fread() function, 402<br />

free() method, 197<br />

freeing<br />

memory (see memory)<br />

variable values, 34<br />

XML parser, 271<br />

FreeType library, providing TrueType<br />

fonts, 221<br />

FriBiDi extension, 461<br />

fscanf() function, 402<br />

fseek() function, 403<br />

fsockopen() function, 403<br />

fstat() function, 403<br />

ftell() function, 404<br />

FTP extension, 461<br />

ftruncate() function, 404<br />

full paths, resolving filenames to, 288<br />

func_get_arg() function, 68, 404<br />

func_get_args() function, 68, 404<br />

func_num_args() function, 68, 404<br />

Function Entry macro, 322<br />

function_exists() function, 404<br />

functions, 61–71, 375–456<br />

anonymous, 71<br />

array sorting, 130<br />

arrays, 375<br />

inserting elements into, 340<br />

modifying or applying operation to all<br />

elements, 135<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!