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.

tan() function, 451<br />

target encoding for XML parser, 270<br />

TCP protocol, 194<br />

templates for PDF documents, 253–255<br />

templating systems, 298–301<br />

HTML template for thank you page, 299<br />

template script (example), 299<br />

user input form (example), 298<br />

tempnam() function, 451<br />

terminating PDF document, 236<br />

ternary operator, 36, 46<br />

testing<br />

C-language <strong>PHP</strong> extension, 326<br />

colors, program for, 231<br />

return value for failure, 93<br />

text<br />

in images, 220–223<br />

buttons, 223<br />

fonts, 221–223<br />

languages other than English, working<br />

with, 99<br />

in PDF files, 237–246<br />

altering appearance of, 241–243<br />

coordinates, 237–239<br />

fonts, 243–246<br />

functions for, 239–241<br />

outputting basic, 236<br />

representing image with, 232<br />

textual (lexicographic) comparisons, 39<br />

this variable, 144<br />

Thread Safe Resource Manager (TSRM), 318<br />

thread safety<br />

extensions, 359<br />

extensionwide global variables, 344<br />

throwing errors, 305<br />

thumbnails for bookmarks, PDF<br />

documents, 256–258<br />

tick functions<br />

registering, 437<br />

unregistering, 454<br />

ticks directive, 54<br />

TIFF image format in PDF files, 246<br />

time<br />

functions for, 375<br />

gettimeofday() function, 411<br />

(see also dates and times)<br />

time() function, 451<br />

timeouts<br />

for current script, 439<br />

setting for sockets, 441<br />

tmpfile() functions, 452<br />

tokenizing strings, 92, 449<br />

touch() function, 452<br />

track_errors option (php.ini file), 304<br />

trailing options, Perl-style regular<br />

expressions, 107<br />

transactions, 202<br />

transforming XML with XSLT, 277–280<br />

creating XSLT processor, 278<br />

transitions for PDF pages, 261<br />

translation tables for HTML entities, 83, 406<br />

transparency of images, 216, 228<br />

in PDF files, 246<br />

(see also alpha channel)<br />

traversing arrays, 125<br />

calling function for each element, 128<br />

with for loop, 127<br />

iterator functions, 126<br />

in random order, using shuffle()<br />

function, 134<br />

reducing an array, 128<br />

searching for values, 129<br />

trigger_error() function, 305, 452<br />

trim() function, 80, 452<br />

trimming strings, 438<br />

true and false keywords, 27<br />

true color images, 216<br />

background colors for, 229<br />

converting to paletted image, 229<br />

true color color indexes, 231<br />

TrueType fonts<br />

antialiased, troubleshooting, 224<br />

in PDF files, 244<br />

using with GD, 221<br />

truncating files, 404<br />

truth values (see boolean data type)<br />

TSRM (Thread Safe Resource Manager), 318<br />

type juggling, 37<br />

types (see data types)<br />

type_spec strings, 335<br />

specification characters, 336<br />

modifiers, 336<br />

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

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

U<br />

uasort() function, 130, 452<br />

ucfirst() function, 81, 452<br />

ucwords() function, 81, 453<br />

uksort() function, 130, 453<br />

umask() function, 291, 453<br />

unary operators, 36<br />

- (arithmetic negation) operator, 38<br />

autoincrement and autodecrement, 39<br />

Index | 503

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

Saved successfully!

Ooh no, something went wrong!