832 each() function
each() function, 75-76, 90 echo statements, 22-23 editing, content management systems
editor screen, 581-582 online, 556
edit_book_form.php script (Shopping Cart application), 549
elements
arrays, 72, 90-92 XML, 743
else statements, 41-42 elseif statements, 42 email, encryption
GPG (Gnu Privacy Guard), 325-329, 331-333
PGP (Pretty Good Privacy), 325
email client application (Warm Mail), 585
accounts creating, 602-603 deleting, 604-605 modifying existing accounts, 604 selecting (reading email), 605-608 setting up, 600-605
application architecture, 588 database, setting up, 588-590 deleting email, 615-616 extensions, 620 files, 588 IMAP function library, 586-587 interface, 587-588
logging in, 597-600 logging out, 600 reading mail mailbox contents, viewing, 608-611 messages, 611-615
selecting accounts, 605-608 script architecture, 590, 596 sending mail, 616-620 solutions, 586-588
embedding, PHP in HTML, 14-18 empty() function, 39
encapsulation (object-oriented
develop-encrypting
data, 324 passwords (authentication), 300-301
encryption
ciphertext, 284 Data Encryption Standard (DES), 285 decryption, 284
digital certificates, 287-288 digital signatures, 286-287 encryption algorithm, 284 GPG (Gnu Privacy Guard) file upload, 337 installing, 325-328 key pairs, 326-327 testing, 328-333 hash functions, 286 PGP (Pretty Good Privacy), 325 passwords, 247
plain text, 284 private key encryption, 285 public key encryption, 285-286 RSA, 286
SSL (Secure Sockets Layer), 332-333
end of file, finding, 62 end() function, 90 endElementHandler() method, 773 engineering, software, 440 ENUM type, 201
envelopes, SOAP envelopes, 745 environment variables, PHP (functions), 354-355
environments, development, 448 EPA Web site, 291
equal sign (=) assignment operator, 22 equals operator, 32
equi-join, 210, 214 Equifax Secure, 287-288, 375 ereg() function, 115
eregi() function, 115, 360 eregi_replace() function, 115 ereg_replace() function, 115 error checking, exit statement, 49
Trang 2833 File Transfer Protocol (FTP)
error messages, calling undefined func-tions, 130
error reporting levels, 465-468 error suppression operator, 34-35 errors
401 errors (HTTP), 306 error reporting levels, 465-468 exception handling, 468-471 logic, 462-463
programming, 455-463 runtime, 457
database interaction, 459-461 functions that don’t exist, 458-459 input data, 462
network connections, 461-462 reading/writing files, 459 software (security threats), 279-280 syntax, 456-457
triggering, 468
escapeshellcmd() function, 323, 354 escaping characters, 102
eval() function, 430-431 evaluating strings, 430-431 Evil Walrus Web site, 814 exception handling, 468-471 exec() function, 352 executable content (stored data), 323 execution operator, 35
exit language construct, 431 exit statement, 49
expanding threads (Web forum applica-tion), 682-685
expand_all() function, 685 EXPLAIN statement, 251-254 explode() function, 88-89, 103, 365 exploits, BUGTRAQ archives Web site, 344
exporting public keys (Gnu Privacy Guard), 326
extended syntax, 216 extends keyword, 152
Extensible Markup Language See XML
extensions
loading, dynamically, 434 Shopping Cart application, 553 Warm Mail application, 620 Web forum application, 703
extensions (filename extensions), require() statement, 120
extract() function, 92-94 extract_type parameter (extract() func-tion), 93
F
f file mode, 55
f parameters, 771 FastTemplate Web site, 451 fclose() function, 60, 346 fdf create() function, 722 fdf set file() function, 722 fdf set value() function, 722 FDF Web site, 722
Fedex Web site, 268 feof() function, 62 fgetc() function, 64 fgetcsv() function, 62-63 fgets() function, 62 fgetss() function, 62 fields
scope, 243 tables, 170 user file (HTML form), 339
figures, drawing, 404-412 File Details view, 349 file modes, 53 file paths from directories, 347 FILE privilege, 188, 248 File Transfer Protocol (FTP), 365, 374
anonymous login, 368 filetime() function, 370 file_exists() function, 370 FTP transfer modes, 372 ftp_connect() function, 369 ftp_fput() function, 372
How can we make this index more useful? Email us at indexes@samspublishing.com
Trang 3834 File Transfer Protocol (FTP)
ftp_get() function, 372 ftp_login() function, 369 ftp_mdtm() function, 370-371 ftp_nlist() function, 373 ftp_put() function, 372 ftp_quit() function, 372 ftp_size() function, 373 mirroring files, 366-372 set_time_limit() function, 373 timeouts, avoiding, 373 uploading files, 372
file update times, checking (mirroring files), 370-371
file upload
displaying, 344 HTML, 338-339 HTML forms, 337 online newsletters, 622 PHP, writing, 339-340, 343-344 problems, 344-345
file upload method, 556 file() function, 63 fileatime() function, 350 filedetails.php file, 348 filegroup() function, 348-350 filemtime() function, 350 filename extensions, require() statement, 120
fileowner() function, 348-350 fileperms() function, 350 files, 51-52
auto append file, 559 auto prepend file, 559 backing up, 291, 366-372 blue-button.png, 399 book_insert.sql, 205 browsedir.php, 345 BUGTRAQ archives Web site, exploits, 344
catching, code, 340 checking existence of, 65 checking size of, 65
constants.php (Amazon), 755 content management systems, 562-563 core application, index.php (Amazon), 752-758
create_database.sql, 563 creating, 351
data, loading from, 257 db_fns.php, 572 delete_fns.php, 577 deleting, 65, 351 design_button.html, 396 disadvantages, 68 downloading, FTP servers, 371-372 filedetails.php, 348
footer.php, 566 formats, 59-60 green-button.png, 399 headlines.php, 565-567 htaccess files (Apache Web server), basic authentication (HTTP), 305-308 httpd.conf, 798
index.html, 713-715 interacting with, 348 keywords.php, 579 listings in directories, 346 loading arrays from, 86-89 locking, 66-68
log files, 289-290 login.php, 571 logout.php, 572 make_button.php, 396 mirroring, FTP functions, 366-372 MLM, 624-625
moving, 351 multiple, uploading, 660, 665 navigating inside files, 65-66 newbooks.txt, 257
opening file modes, 53 fopen() function, 54-56 FTP (File Transfer Protocol), 56 HTTP (Hypertext Transfer Protocol),
Trang 4835 format codes
page.php, 567-568 pdf.php, 713 pdflib.php, 713 personalized documents, certification project, 713
php.ini file, 125-126, 434-435 PHPBookmark application, 476 pollsetup.sql, 404
progex.php, 353 properties, changing, 350-351 reading, 53, 60-64, 348-350 red-button.png, 399 rtf.php, 713, 719 score.php, 713-715, 718 select_fns.php, 575 Shopping Cart application, 515-516 showpoll.php, 405-410
signature.tif, 713 simplegraph.php, 390 status function results, code, 348, 353 storage, content management systems, 557
stories.php, 568, 572, 575 topbar.php, 757
upload.html, 338 upload.php, 340 uploading, FTP functions, 372 utilityfunctions.php, 757 variables, 339-340 vote.html, 404 Warm Mail application (email client), 588 Web forum application, 678
writing to, 53 file formats, 59-60 fwrite() function, 59
filesize() function, 65, 350 filetime() function, 370 filetype() function, 350 file_exists() function, 65, 370 filled out() function, 484-485 filtering input data (Web databases), 228 find and replace, substrings, 108-109
finding substrings, 106-108, 115 fire suppression systems, 291 firewalls, 290
FishCartSQL, 553 Fitting text onto buttons, 399-402 flat files, 51-52
checking existence of, 65 checking size of, 65 closing, 60 deleting, 65 disadvantages, 68 formats, 59-60 locking, 66-68 navigating inside files, 65-66 opening, 53-58
reading, 53, 60-64 writing to, 53 file formats, 59-60 fwrite() function, 59
floating point data types (numeric column types), 198-199
flock() function, 67 floor() function, 385 focus groups, 264 fonts
buttons, text, colors, 396 descenders, 402 FreeType library, downloading, Web site, 388
images, creating, 396, 399-404 PostScript Type 1 fonts, downloading, FTP site, 388
TrueType, 396
footer.php, 562, 566 footers, script architecture, 627 fopen() function, 53-58, 62, 346, 360, 502 for loops, 47-48
foreign keys (databases), 171 forgot_form.php, 476 forgot_passwd.php, 476 format codes, date() function, 379-381
How can we make this index more useful? Email us at indexes@samspublishing.com
Trang 5836 formats
formats
images, 388-390 personalized documents, 706-712
formats (files), 59-60 formatting
output, 559 strings, 97-102
forms
HTML, 12-14, 224-225, 337-339 totaling, with operators, 35-36 variables, accessing, 20-24
forum application See Web forum
appli-cation forwarding email (Warm Mail applica-tion), 618-620
fpassthru() function, 63 fread() function, 64 Free Software Web site, 389 freeing up memory (mysql_free_result() function), 236
FreeType library, downloading, Web site, 388
fseek() function, 66 ftell() function, 65 FTP (File Transfer Protocol), 365, 374
anonymous login, 368 content management systems, 556 filetime() function, 370
file_exists() function, 370 FTP transfer modes, 372 ftp_connect() function, 369 ftp_fget() function, 371 ftp_fput() function, 372 ftp_get() function, 372 ftp_login() function, 369 ftp_mdtm() function, 370 ftp_nlist() function, 373 ftp_put() function, 372 ftp_quit() function, 372 ftp_size() function, 373 mirroring files, 366-372 opening files, 56
servers, 369-372 set_time_limit() function, 373 sites, 388
timeouts, avoiding, 373 uploading files, 372
FTP_ASCII mode, 372 ftp_connect() function, 369 ftp_fget() function, 371 ftp_fput() function, 372 ftp_get() function, 372 ftp_login() function, 369 ftp_mdtm() function, 370 ftp_nlist() function, 373 ftp_put() function, 372 ftp_quit() function, 372 ftp_size() function, 373 full join, 210, 214 function libraries
developing, 446 PDF, Web sites, 712 PHPBookmark application, 476
function names, code, 443 function overloading, 132 function scope, 135 functions
accessor, 776 accessor functions, 150-151 add bm(), 501
addslashes(), 248, 323 AddSlashes() function, 102, 228 addToCart(), 784
add_quoting(), 700 aggregate, MySQL, 215 applying to array elements, 90-92 array push(), 646
array_count_values() function, 92 array_reverse() function, 86 array_walk() function, 90-92 arsort() function, 81 asort() function, 81 AVG(column), 215 basename($path), 347