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.

cryptography<br />

mcrypt extension, 464<br />

mhash library, 464<br />

ctype library, 459<br />

CURL functions, 459<br />

current( ) function, 126, 391<br />

cursor, positioning in PDF text, 239, 249<br />

customizing session information storage, 185<br />

cut subpattern, Perl regular expressions, 109<br />

Cybercash library, 459<br />

CyberMUT (financial transaction<br />

service), 459<br />

D<br />

Data Definition Language (DDL), 191<br />

Data Manipulation Language (DML), 191<br />

data source name (see DSN)<br />

data types, 23–28<br />

arrays, 27, 116–139<br />

booleans, 26<br />

casting, 37, 43<br />

converting values to given type, 440<br />

extension function return<br />

values, 338–341<br />

arrays, 339<br />

objects, 340<br />

simple types, 338<br />

floating-point numbers, 24, 416<br />

functions for, 377<br />

gettype() function, 411<br />

in printf() format modifiers, 77<br />

integers, 24, 416<br />

is_double() function, 416<br />

NULL value, 29<br />

objects, 28, 140–157<br />

pval/zval, 331–335<br />

macros to access zval fields, 333–335<br />

zval_copy_ctor() function, 332<br />

strings, 25<br />

(see also strings)<br />

type_spec strings, 335<br />

specification characters/modifiers, 336<br />

xmlrpc extension and, 283<br />

database queries (see SQL)<br />

databases, 2, 189–213<br />

accessing with <strong>PHP</strong><br />

configuring database support, 190<br />

with PEAR DB library, 189<br />

using database-specific<br />

extensions, 189<br />

advanced techniques, 197<br />

placeholders for query values, 198<br />

connecting to, 194<br />

data source names (DSNs), 192<br />

disconnecting from, 197<br />

error checking, 194<br />

filePro extension, 461<br />

Hyperwave library for storing and<br />

managing documents, 462<br />

Informix extension, 462<br />

Ingres II extension, 462<br />

InterBase extension, 463<br />

metadata, 202<br />

Microsoft SQL Server extension, 464<br />

MySQL<br />

accessing, querying, and printing<br />

result, 12–13<br />

extension for, 465<br />

mSQL server extension, 464<br />

session information, storing in, 185<br />

ODBC extension, 465<br />

Oracle extensions, 465<br />

Ovrimos SQL extension, 465<br />

PostgreSQL extension, 466<br />

queries, 195<br />

preparing for multiple executions, 198<br />

response details, methods<br />

providing, 200<br />

(see also SQL)<br />

read and write handlers, 186<br />

relational databases and SQL, 190<br />

replication for performance tuning, 315<br />

sample application, 202–212<br />

adding a business, 207–211<br />

administrator’s page, 205–207<br />

database connection, 204<br />

database information, displaying, 211<br />

database tables, 203<br />

sequences, 201<br />

shortcuts for performing query/fetching<br />

results, 199<br />

Sybase extension, 468<br />

transactions, 202<br />

dates and times<br />

calendar events, MCAL extension, 463<br />

calendar library, 458<br />

checkdate() function, 387<br />

date() function, formatting with, 391<br />

dates, formatting for printf(), 78<br />

functions for, 375<br />

getdate() function, 408<br />

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

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

Index | 479

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

Saved successfully!

Ooh no, something went wrong!