PHP Hacks
Tips & Tools For Creating Dynamic Websites

First Edition Januar 2006
ISBN 978-0-596-10139-8
Seiten 468
EUR29.00, SFR49.90


Weitere Informationen zu diesem Buch

Inhaltsverzeichnis | Index | Probekapitel | Kolophon | Rezensionen |


Index

	
[ A ], [ B ], [ C ], [ D ], [ E ], [ F ], [ G ], [ H ], [ I ], [ J ], [ L ], [ M ], [ N ], [ O ], [ P ], [ Q ], [ R ], [ S ], [ T ], [ U ], [ V ], [ W ], [ X ], [ Z ],

A[ Top ]
Abstract Factory pattern, 290-294
access control, databases, 147
ActionScript code (Flash object), 403
ActiveWidgets spreadsheet library, 44-47
ad redirector, building, 258-261
adapter classes, 303-307
      example using a text graph, 304-307
      situations for using, 307
add( ) function unit tests, 330
add( ) method, 226, 289
addBreak( ) method, 297
addRule( ) method, 224
addText( ) method, 297
add_to_queue( ) function, 215
add_transid( ) function, 234
add_url( ) function, 349
administrator role, 249
Ajax, using JSON for easier implementation, 73-75
Amazon Web Services access, 391
Amazon Web Services module, installing, 14
Amazon.com, creating new interface for, 388-391
anim( ) function, 404
Apache web server
      Chain of Responsibility pattern, 313
      installing on Linux, 8
      installing on Windows, 2
      mod_rewrite module, 253-258
      on Mac OS X, 6
            verifying installation, 8
appendChild( ) method, 229
applications, PHP
      design, 216-285
            ad redirector, 258-261
            Buy Now button, 262-271
            creating shopping cart, 277-285
            creating vCard files, 275-277
            double submit problem, fixing, 230-234
            finding where site guests come from, 271
            importing information from vCards, 273-275
            login system, 237-241
            MD5 passwords, 249-253
            modular interfaces, 216-221
            objects, converting to arrays, 224-227
            security roles, 241-249
            URLs, creating with mod_rewrite, 253-258
            user-customizable reports, 234-237
            Wiki text support, 221-224
            XML, creating with DOM, 227-229
      testing, 329-354
            checking for broken links, 335-337
            documentation, generating automatically, 351-354
applications, PHP, testing (continued)
            simulated users, 337-342
            unit tests, 329-335
            with a spider, 347-351
            with robots, 342-346
array of bit masks, 69-72
array of states (singleton), 322
arrays, converting objects to, 224-227
arrow graphics, 60
associative arrays, 128

B[ Top ]
back-references, 257
binary clock, building with DHTML, 69-72
binary package of PHP 5 (for Mac OS X), 7
bit masks, array of, 69-72
bit_table( ) function, 72
Bridge pattern, 307-309
broken links, checking for, 335-337
browsers (see web browsers)
buildDocument( ) function, 299
Builder pattern, 296-300
      set of example builder classes, 297-299
      uses in PHP web applications, 300
buildselect( ) function, 56
Buy Now button, adding to PHP applications, 262-271

C[ Top ]
Cake framework, 154
calendar (interactive), creating, 88-92
_ _call method, 152
call_user_func_array( ) function, 215
cell phones, sending SMS messages to from IM client, 392-396
Census Bureau, 56
Chain of Responsibility pattern, 309-313
chat system (IRC), 376-378
checklinks_end( ) function, 337
checklinks_start( ) function, 337
check_price( ) function, 270
check_transid( ) function, 234
chunking data, 324
Circle class, 220
classes
      adapter, 303-307
      breaking megaclasses into smaller classes, 314-316
      dynamic, 149
      implementation, hiding in another class, 307-309
      (see also objects)
class.jabber.php, 369, 373, 395
      functions to override default message handlers, 374
clock (binary), building with DHTML, 69-72
cloud image dataset, 357
code embedded in web pages, xvii
Code Generation in Action, 296
color selector, building, 81-84
comments
      documentation from, 351
      PHPDoc, 351-354
Composite pattern, 314-316
      situations for using, 316
connect( ) method, 367
contact information
      creating vCard files from application data, 275-277
      stored in vCard files, reading with PHP application, 273-275
Contact_Vcard_Parse PEAR module, 273
Content-type header, 276
coordinates (points on a map), 360-364
create, read, update, delete (CRUD) database code, 155-164
createAttribute( ) (DOMDocument), 296
createElement( ) (DOMDocument), 296
createTextNode( ) (DOMDocument), 296
CRUD (create, read, update, delete) database code, 155-164
CSS
      Ajax, 73
      building drag-and-drop list, 49-51
      getting classes into header, 63
      setting up styles for menu, 66
      use in PHPReports system, 236
CSV (comma-separated value) datafiles, converting to PHP, 180-184
CURL package, 265

D[ Top ]
data conversion with adapters, 303-307
data <div> tag, innerHTML, 75
database handle singleton, 321-322
databases
      access control, 147
      CRUD code, generating, 155-164
      CSV data, converting to PHP, 180-184
      designing better SQL schemas, 142-147
            not null fields, 146
            primary keys, 142
            relational databases, 144-146
      dynamic access objects, 149-154
      exporting schema as XML, 168-170
      generating access code from XML schema, 175-180
      generating SQL from XML schema, 172-175
      library for roles system, 242
      loading from Excel, 194-199
      MySQL table, creating message queue from, 211-215
      PHP applications, use of Abstract Factory pattern, 293
      problems with PHP applications, xvii
      read optimization with Composite pattern, 316
      roles system, SQL code, 245
      users database, 238, 240
      writing portable code with bridges, 307-309
      XML query handler for database access, 170-172
dataLookup( ) function, 46
Day class, 92
DB module (PEAR), 148
DBRecord objects, 152
design patterns, xviii, 286-328
      Abstract Factory pattern, creating objects, 290-294
      adapter class, 303-307
      Bridge pattern, 307-309
      Builder pattern, 296-300
      Chain of Responsibility pattern, 309-313
      Composite pattern, 314-316
      Façade pattern, 316-320
      Factory Method pattern, 294-296
      Observer pattern, loosely coupling objects, 287-290
      Singleton pattern, 321-324
      Strategy pattern, 300-303
      Visitor pattern, 324-328
design, PHP applications, 216-285
      ad redirector, 258-261
      Buy Now button, 262-271
      converting objects to arrays, 224-227
      creating shopping cart, 277-285
      creating URLs with mod_rewrite, 253-258
      creating vCard files, 275-277
      creating XML with DOM, 227-229
      double submit problem, fixing, 230-234
      finding where site guests come from, 271
      importing information from vCards, 273-275
      login system, 237-241
      MD5 passwords, 249-253
      modular interfaces, 216-221
      security roles, 241-249
      user-customizable reports, 234-237
      Wiki text support, 221-224
desktop applications, using PHP for, xviii
DHTML (Dynamic HTML), 44-99
      building a binary clock, 69-72
      building graphs, 52-58
      color picker, 81-84
      creating dynamic navigation menus, 64-67
      drag-and-drop lists, 49-52
      drop-down stickies, 61-64
      Google Maps scrolling effect, 93-99
      hiding JavaScript code dynamically, 67-69
      interactive calendar, 88-92
      JSON, using for easier Ajax implementation, 73-75
      link graph using Google as data source, 382-386
      link graphs, creating, 85-88
      sectioning page content with spinners, 58-61
DHTML (Dynamic HTML) (continued)
      slideshow, creating, 76-79
      vector graphics, adding with PHP, 79-81
dictionaries, 128
      Wikipedia on PSP, 422-429
div canvas, 81
div element, 60
documentation, generating automatically, 351-354
documents directory
      Apache web server on Mac OS X, 6
      Apache web server on Windows, 3
doit( ) function, 404
DOM
      converted to ActionScript objects, 404
      creating XML without errors, 227-229
      Factory Method pattern, 296
DOMDocument class, 228
      factory methods, 296
DOMElement class, 228
DOMNodeList interface, 224
double submit problem, fixing, 230-234
dowrite JavaScript function, 69
drag-and-drop lists, 49-52
drawgraph( ) function, 56
DrawingEnvironment class, 220
DrawingObject interface, 220
drawLine( ) function, 81
drop-down stickies, 61-64
dynamic classes, 149
Dynamic HTML (see DHTML)

E[ Top ]
email-to-SMS gateways, wireless providers, 395
embedded code, xvii
enableRule( ) and disableRule( ) methods, 224
encyclopedia on the Web (see Wikipedia)
endBody( ) method, 297
end_link function, 63
end_section function, 60
English dictionary database (Wikipedia), 427
escape sequences representing RTF, 203-207
event triggers, 289
events, 289
Excel
      dynamic generation of spreadsheets, 207-211
      extracting data from customer uploads, 190-194
      loading your database from, 194-199
Extensible Messaging and Presence Protocol (XMPP), 369
      interactions with, 374
      (see also Jabber)

F[ Top ]
Façade pattern, 316-320
Factory Method pattern, 294-296
      situations for using, 296
factory objects, 290-294
      uses in PHP database applications, 293
FGS Linux installer, 357
field tags, 169
Firefox browser
      DHTML scrolling application and, 98
      scaling images, 120
Flash movies
      building with XML, 107
      creating from PHP, using Ming, 396-405
      XSPF, uploading from Music Player site, 413
Flikr, 85
font size of links, expressing importance of terms, 85-87
fopen( ), fwrite( ), and fclose( ) functions, 103
foreach operator, 224
form variable (states), 51
forms
      entry form for CSV data and field names, 183
      handler for logins, 238
fromFile( ) method, 274
functions, calling dynamically in PHP, 328

G[ Top ]
games, checking network game with PHP, 419-421
GD imagint functions, 103
geographical location for IP addresses, 271
geospatial technologies, open source, 364
GeoTIFF, 357, 358
      map example using, 362-364
getNames( ) method (JavaScript), 75
GNU Public License (GPL), 47
Google
      searching by link graph, 382-388
      Web API access, 387
Google Maps
      creating custom, 406-411
      scrolling effect, creating, 93-99
      web site, 93
graphics, 101-141
      accessing iPhoto pictures, 126-141
      arrows, 60
      creating with SVG, 104-107
      image overlays, 123-126
      merging images, 117-120
      simplifying with objects, 107-115
      splitting an image into multiple images, 115-117
      thumbnail images, creating, 101-104
      vector, adding with PHP, 79-81
graphics modules, PHP on Mac OS X, 6
GraphicSpace class, 112
graphing in PHP, xix
graphs
      adapter example using text graph, 304-307
      building with DHTML, 52-58
      creating with PHP, 120-122
      dynamic generation by Flash application, 396-405
      link graphs, creating, 85-88
grid control (ActiveWidgets), 44-47
GTk, building GUI interfaces, 365-368
      limitations, 368
      PHP 4 interpreter with GTk support, 367
GUIs (graphical user interfaces) (see UIs)

H[ Top ]
Half Life server, checking, 419-421
has_role( ) function, 247
head tag, 63
header function, 206
hiding JavaScript code, 67-69
hints, pop-up, 47-48
HSB( ) function, 84
HSB color values, 81-84
hsb2hex( ) function, 84
htdocs directory, 3
HTML
      alternative interface comparing two Amazon searches, 388-391
      broken links, checking for, 335-337
      drag-and-drop lists, 49-52
      formatted for PSP Wikipedia, 422-427
      RSS reader formatted for PSP, 379-382
      use in PHPReports system, 236
HTML, Dynamic (see DHTML)
HTMLBuilder class (example), 297, 299
HTTP requests, forcing new for redirects, 255
HTTP transfer requests, Ajax and, 73
HTTP_Client module, 342-344, 347-351
      installing, 13
httpd executable, Apache, 8
httpd.conf file
      editing for Mac OS X, 6
      editing for Windows, 3
HttpRequest object, 75
hue, saturation, and brightness (see HSB color values)

I[ Top ]
IGN gaming site, 258
IIS server, installing PHP, 3
IM (instant messaging)
      sending RSS feeds to application, 369-376
      sending SMS messages from client, 392-396
image display, PHP script for, 76-78
image resizing (scale.php), 78
image scaling (see scaling images)
image scroller design, 94
image upload site (Flikr), 85
imagecopy( ) function, 124
imagecopyresized( ) function, 103, 126
imagecreatefromjpeg( ) function, 103
imagecreatetruecolor( ) function, 103
imagejpeg( ) function, 103, 118
imageline( ) function, 121
imagepng( ) function, 121, 124
images
      merging, 117-120
      splitting one image into multiple images, 115-117
imagestring( ) function, 121
<img> tag, src attribute, 78
infinite loop, Observer pattern and, 289
inline features, 361
innerHTML (data <div> tag), 75
insert( ) method, 367
installing PHP, 1-12
      checking ISP PHP installation, 10
      managing MySQL databases, 11
      MySQL, 10
      on Linux, 8-12
            checking for existing installation, 9
      on Mac OS X, 6-8
      on Windows, 1-5
            PHP in Apache, 2
            PHP in IIS, 3
      PEAR modules, 12-15
Instant Payment Notification (IPN), 262, 264
interactive calendar, 88-92
interactive spreadsheets, 44-47
interfaces, modular, 216-221
invoke( ) method, 226, 227
IP addresses, converting to a physical location, 271
IPhoto pictures, accessing, 126-141
IRC, talking with your application through, 376-378
ISP
      installing PEAR modules on, 15
      PHP installation, checking, 10
iterate( ) function, 324
Iterator interface, 226

J[ Top ]
Jabber, 369-376, 395
      command-line PHP Jabber client, 369-375
JavaScript
      ActiveWidgets grid control library, 46
      DHTML slideshow, 78
      drop-down stickies, 61-63
      Google Maps scrolling effect, creating, 94-98
      hiding code dynamically, 67-69
      HTTP page transfer requests, Ajax and, 73
      link graph used to search Google, 386
      overLIB for pop-up hints, 47-48
      rendering line graphics, 79-81
      Vectorgraphics Library, 80-81
JPEG viewer, 419
JSON, easier implementation of Ajax, 73-75

L[ Top ]
LAMP (Linux Apache) architecture, 10
Laszlo XML compiler, 107
layering (graphics), 107-115
line graphics, 79-81
link checker, 335-337
link graphs
      creating, 85-88
      searching Google by, 382-388
link_header function, 63
Linux
      FGS installer, 357
      installing PHP, 8-12
            checking for existing installation, 9
list command (PEAR modules), 14
list-all command (PEAR modules), 13
Listener interface, 226
ListenerList class, 226
listeners, 287
lists (drag-and-drop), 49-52
loadModules( ) function, 220
logging API with façade (example), 317-320
login system, creating, 237-241
loose coupling, 287-290
      defined, 289

M[ Top ]
Mac OS X
      installing PEAR modules, 13
      installing PHP, 6-8
makeCalendarDays( ) function, 92
manager role, 247
      permissions, 249
map file, 356
maps
      creating custom Google maps, 406-411
      mapping with PHP, xviii
MapScript (see PHP MapScript)
MapServer, 355-365
      learning more about, 364
      modifying the map, 359
      rendering a map, 358-360
markup elements, phpDocumentator documentation, 352
match modifier characters (regular expressions), 257
MD5( ) function, 252
MD5-encrypted passwords, 249-253
MDB( ) function, 251
media upload/download center, 415-419
      file downloads, 416
      listing available files, 416
      loading file into database, 417
      media table for file uploads, 415
menu_css function, 66
menus, dynamic navigation, 64-67
merging images, 117-120
message queue, creating from MySQL table, 211-215
Metacritic DVD review page, 184
Microsoft Word documents, searching by parsing WordML files, 199-201
migrating passwords from plain text to MD5 encryptions, 250-253
Ming, 396-405
mod_rewrite module (Apache), 253-258
modular interfaces, 216-221
MP3-playing application, 412-414
Music Player web site, 413
MySQL
      creating message queue from table, 211-215
      designing better database schemas, 142-147
            not null fields, 146
            primary keys, 142
            relational databases, 144-146
      enabling database access on Windows, 2
      exporting database schema as XML, 168-170
      installing, 10
      managing databases, 11
mysql command, 233
mysqli extension, 264
      use of, 270

N[ Top ]
navigation menus, dynamic, 64-67
Net_GameServerQuery module, 419-421
Net_Geo( ) function, 272
Net-Geo PEAR module, 271
Net_SmartIRC module, 376-378
newRecord( ) method, 294, 295
nextimage( ) function, 78
next_page( ) function, 349
not null fields, 146

O[ Top ]
ob_end_clean( ) function, 188
obfuscating JavaScript code, 67-69
ob_get_clean( ) function, 103, 337
ob_get_contents( ) function, 188
object-oriented PHP
      dynamic database access objects, 149-154
      simplifying graphics, 107-115
objects
      converting to arrays, 224-227
      creating with Abstract Factory pattern, 290-294
      flexible creation with Factory Method pattern, 294-296
      loosely coupling with Observer pattern, 287-290
      singleton, 321-324
obscurejs_end function, 69
obscurejs_start function, 69
Observer pattern, 287-290
      infinite loop, potential for, 289
ob_start( ) function, 103, 160, 188, 337
onload( ) event, 56
onLoad( ) function, 403
onmousedown, onmousemove, and onmouseup functions, 98
Outlook, importing vCards into, 277
OutputBuilder class (example), 297, 299
overlays, image, 123-126
overLIB JavaScript library, 47-48

P[ Top ]
page refreshes, avoiding, 99
page_menu function, 66
paint( ) method, 81
passwords, MD5-encrypted, 249-253
patterns, design, 286-328
      Abstract Factory pattern, 290-294
      adapter class, 303-307
      better use of, xviii
      Bridge pattern, 307-309
      Builder pattern, 296-300
      Chain of Responsibility pattern, 309-313
      Composite pattern, 314-316
      Façade, 316-320
      Factory Method pattern, 294-296
      Observer pattern, 287-290
      Singleton pattern, 321-324
      Strategy pattern, 300-303
      Visitor pattern, 324-328
PayPal, Buy Now buttons, 262-271
PDO (PHP Data Objects), 149
PEAR modules, 12-15
      Contact_Vcard_Parse, 273
      DB module, 148
      HTTP_Client, 342-344, 347-351
      installing on ISP, 15
      JSON, 73-75
      Net_GameServerQuery, 419-421
      Net-Geo, 271
      Net_SmartIRC, 376-378
      PHPUnit2, 330, 344-346
      Services_Google, 386, 387
      Services_Weather, 430-432
      Text_Wiki, 222, 427
PECL modules, 2
permissions, role-based security, 249
PHP
      common problems with applications, xvii
      installing, 1-12
PHP 4 interpreter with GTk support, 367
PHP Data Objects (PDO), 149
php executable, 2
PHP MapScript, 356-365
      creating application from scratch, 360-364
      documentation, 360
PHPDoc comments, 351-354
phpDocumentor
      markup elements, 352
      web site, 351
phpDocumentor command, 352
      running, 353
php.inifile, 2
phpMyAdmin application, 12
PHPReports system, 235, 236
PHPUnit2 framework, 330, 344-346
physical location for IP addresses, 271
playlists (dynamic), creating from PHP, 412-414
PlayStation Portable (PSP), 379
      reading RSS feeds on, 379-382
      Wikipedia on, 422-429
PNG graphics, 121
podcasting, Flash player for blogs, 414
points on a map, 360-364
pop-up hints, 47-48
position( ) function, 98
position attributes (div element), 60
preg_match_all( ) function, 166
prepared statements, 264
      shopping cart processing, 270
primary keys, 142
print_r( ) function, 167
processing during page build, xvii
PSP (see PlayStation Portable)

Q[ Top ]
queueing messages, 211-215

R[ Top ]
Rails framework, Ruby, 154
ranges, 257
$rb_run object, 367
readRecords( ) method, 295
Record class, 290
      RecordReader class and, 294
RecordFactory class, 290
RecordList class, 324
RecordReader class, 294
      readRecords( ) method, 295
records, inserting into orders table, 264
redirections
      basic, 255
      regular expressions, using, 255-258
redirector for ads, 258-261
refreshing pages, avoiding, 99
regular expressions
      GTk test application, 365-368
      reading XML, 165-167
      scraping web pages for data, 184-189
      used by mod_rewrite, 255-258
relational databases, 144-146
RenderItem class, 112
RenderQueue class, 112
reporting engines, 235
reports, user-customizable, 234-237
REST requests, in Ajax, 73
rewriting URLs, 253-258
RGB values, conversion to and from HSB, 82-84
RLIB (reporting engine), 235
robots, testing applications with, 342-346
      robots as unit tests, 344-346
roles, 241-249
      database library for, 242
      home page for logged-in users, 246
      login page, 243
      login processor, 243
      logout processor, 244
      management page, 244
      security library functions, 245
      SQL code for users database, 245
RSS feeds
      reading on your PSP, 379-382
      sending to IM application, 369-376
RTF (Rich Text Format) documents, creating dynamically, 202
Ruby, Rails framework, 154
run( ) function, 367
run_queue( ) function, 215

S[ Top ]
sales
      tracking, 263
      verifying, 264, 267-269
saveXML( ) method, 229
Scalable Vector Graphics (SVG), 79
scaling images, 78
      Google Maps scrolling effect, 97
      image overlay, 125
      merged images, 120
      viewport scaling, 112
schema tag, 169
screen scraping, 184-189
      technical and legal problems with, 188
scrolling effect (Google Maps), creating, 93-99
scrolling panorama, 117
sectioning page content with spinners, 58-61
security
      database access control, 147
      improving, xviii
      roles, 241-249
Services_Google module, 386, 387
Services_Weather module, 430-432
_ _set method, 154
setCalendarText( ) function, 93
set_clock( ) function, 72
set_state( ) function, 72
shopping cart, 277-285
      adding items, 280
      checkout page, 280
      database library, 278
      database schema, 277
      processing with prepared statements, 270
      product page, 279-280
      removing items, 282
      testing with HTTP_Client, 342-344
SimpleListener class, 226
simulated users, testing application, 337-342
Singleton pattern, 321-324
slash (/), trailing slashes for URLs, 257
slideshows, DHTML, 76-79
SMS messages, sending from IM client, 392-396
spider, testing with, 347-351
spinner_header function, 60
spinners, dividing page content, 58-61
splitting one image into multiple images, 115-117
spreadsheet-style HTML control, 44-47
SQL
      command construction, 148
      generating from XML database schema, 172-175
      injection attacks, 147
src attribute (<img> tag), 78
startBody( ) method, 297
start_link function, 63
start_section function, 60
startup( ) function, 72, 98
states form variable, 51
stickies, drop-down, 61-64
stranded pages, spider script and, 351
Strategy pattern, 300-303
SVG (Scalable Vector Graphics), 79, 104-107
      viewer plug-in, 104
      XML, use of, 107
SWF format, 396, 403
SWFAction object, 403
switchimg( ) function, 78

T[ Top ]
table tags, 169
testing, 329-354
      checking for broken links, 335-337
      generating documentation automatically, 351-354
      GTK regular expression test application, 365-368
      unit tests, 329-335
            generating unit tests, 331-335
      with a spider, 347-351
      with robots, 342-346
      with simulated users, 337-342
testing, importance of, xviii
text displayed in calendar, changing, 93
Text_Wiki module, 222, 427
ThinkGeek, 69
thumbnail images, creating, 101-104
trailing slashes (/) for URLs, 257
transactions, redundant (double submits), 230-234
triggers, 289

U[ Top ]
UIs (user interfaces), 355-405
      building GUIs with GTk, 365-368
      custom maps with MapServer, 355-365
      generating Flash movies from PHP with Ming, 396-405
      new interface for Amazon.com, 388-391
      reading RSS feeds on PSP, 379-382
      searching Google with link graph, 382-388
      sending RSS feeds to IM application with Jabber, 369-376
      SMS messages, sending from IM client, 392-396
      talking with your web application through IRC, 376-378
unit tests, 329-335
      generating, 331-335
      robots as, 344-346
Unix systems, installing PEAR modules, 13
Update( ) method, 154
URLs
      creating with mod_rewrite, 253-258
      remapping with Chain of Responsibility pattern, 310-313
U.S. Census Bureau, 56
user applications, working with, xix
user interfaces (see UIs)
user security, improving, xviii
users (simulated), testing application with, 337-342

V[ Top ]
vCards
      creating files from PHP application data, 275-277
      importing information from, 273-275
vector graphics, adding with PHP, 79-81
Vectorgraphics Library, 80-81
verifying sales, 264, 267-269
viewport, 112
Visitor pattern, 324-328
      moving over database records, 325-326
      visitor object receiving each record, 326-328

W[ Top ]
weather showdown page, building, 430-432
Weather Underground, 374
Weather.com web service, 430
web applications
      conversation with, over IRC, 376-378
      uses of Builder pattern, 300
web browsers
      DHTML scrolling application and, 98
      PSP (PlayStation Portable), 379
web interface, upgrading, xix
web pages, scraping for data, 184-189
web site guests, finding where they come from, 271
Wiki text, support for, 221-224
Wikipedia, 221
      dictionary on PSP, 422-429
wikis, defined, 221
WikiWord, 221
Windows
      installing PEAR modules, 12
      installing PHP, 1-5
            in Apache, 2
            in IIS, 3
window.setInterval( ) method, 78
wireless providers, email-to-SMS gateways, 395

X[ Top ]
XHTMLBuilder class (example), 297, 299
XML, 155-215
      creating custom report, 234-236
      creating with DOM, 227-229
      data import from Excel uploads, 190-194
      database schema, generating SQL scripts from, 172-175
      document that maps to database schema, 155, 160
      DOM interface, 224
      drawing script based on, 216-221
      exporting database schema as, 168-170
      file for Flash charting application, 403
      generating database access code from, 175-180
      generating Excel spreadsheets dynamically, 207-211
      iPhoto data file, parsing, 128-141
      Jabber protocol, 369
      loading your database from Excel, 194-199
      logging to, 317
      parsing with JSON library, 73
      query handler for database access, 170-172
      reading with regular expressions, 165-167
      RSS protocol, 369
      searching Word documents by parsing WordML files, 199-201
      to be rendered by Flash, 396
      use by SVG, 107
XML DOM API, Factory Method pattern in, 296
XML parser for photos, 139
XML Simple Playlist Format (XSPF), 412-414
XML SOAP, in Ajax, 73
xml_parse( ) function, 160
XMPP (Extensible Messaging and Presence Protocol), 369
      interactions with, 374
      (see also Jabber)
XSLT, reading database from a URL, 170-172

Z[ Top ]
z levels (RenderItem), 112
Zorn JavaScript Vectorgraphics Library, 80-81

	

Zurück zu PHP Hacks


Themen

Buchreihen

Special Interest

International Sites

O'Reilly China O'Reilly France O'Reilly USA O'Reilly Japan O'Reilly Taiwan