837 functions basename(), 350 browseNodeSearch(), 777 cache(), 779-781 cached(), 779-781 calculate_items(), 533-535 calculate_price(), 533-534 calendar functions, 385-386 callback functions, 773-776 calling, 19, 128-131 change password(), 494, 653 check admin user(), 634 check logged in(), 634 check normal user(), 634 check valid user(), 489 checkdate(), 382 check_auth_user(), 598 chgrp(), 351 chmod(), 351 chop() function, 98 chown(), 350-351 closeddir(), 346 closedir($dir), 346 code blocks, 140-141 commands, running on Web servers, 352- 354 copy(), 351 cos(), 736 COUNT(items), 215 creating, object-oriented development, 157-158 crypt(), 300 cURL functions, 374-376 current() function, 90 date(), 19, 350, 379-382 DATE_FORMAT(), 383-384 db_connect(), 487 db_result_to_array(), 523 declaring, 131-132 decoct(), 350 delete bm(), 505 delete_account(), 604 delete_message(), 615-616 directories, 345-348 dirname($path), 347 dirname(), 350 diskfreespace($path), 347 display account form(), 636, 652 display button(), 645, 666 display information(), 647 display items(), 643 display list form(), 655 display mail form(), 659 display password form(), 652 display preview button(), 666 display registration form(), 481 display user menu(), 489 display() function, 692 display_account_form(), 601 display_account_select(), 606-607 display_account_setup(), 601-603 display_book_form(), 550 display_cart(), 530, 533 display_categories(), 523 display_list(), 608 display_post(), 696 display_tree(), 686-687, 695-696 dl(), 434 do html header(), 633 doubleval(), 248 do_html_header(), 536, 606 draw star(), 736 drawing, parameters, 392 each() function, 75-76, 90 empty(), 39 end() function, 90 ereg() function, 115 eregi(), 115, 360 eregi_replace() function, 115 ereg_replace() function, 115 escapeshellcmd(), 323, 354 eval(), 430-431 exec(), 352 expand_all(), 685 explode() function, 88-89, 103 How can we make this index more useful? Email us at indexes@samspublishing.com 41 525x index 1/24/03 3:39 PM Page 837 838 functions extract() function, 92-94 fclose(), 60, 346 fdf create(), 722 fdf set file(), 722 fdf set value(), 722 feof(), 62 fgetc(), 64 fgetcsv(), 62-63 fgets(), 62 fgetss(), 62 file status results, code, 348, 353 file(), 63 fileatime(), 350 filegroup(), 348-350 filemtime(), 350 fileowner(), 348-350 fileperms(), 350 files, 348-351 filesize(), 65, 350 filetype(), 350 file_exists(), 65 filled out(), 484-485 flock(), 67 floor(), 385 fopen(), 53-58, 62, 346, 360, 502 fpassthru(), 63 fread(), 64 fseek(), 66 ftell(), 65 FTP functions, 365, 374 filetime() function, 370 file_exists() function, 370 ftp_connect(), 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 set_time_limit() function, 373 timeouts, avoiding, 373 uploading files, 372 fwrite(), parameters, 59 get archive(), 649 get email(), 641 get random word(), 497 get unsubscribed lists(), 646 get user urls(), 489 get writer record(), 572 getARS(), 760, 777-778 getCategoryName(), 758-759 getdate(), 382 getenv(), 354-355 getlastmod(), 434 gettype() function, 38 get_accounts(), 602 get_account_list(), 605 get_categories(), 522 get_category_name(), 525 get_current_user(), 433 get_extension_funcs(), 433 get_loaded_extensions(), 433 get_magic_quotes_gpc(), 430 get_magic_quotes_runtime(), 430 get_post(), 695-696 get_post_title(), 699 Header(), 393-394, 720 highlight_file(), 435 highlight_string(), 435 htmlspecialchars(), 323 htmlspecialchars() function, 228 ImageArc(), 412 ImageColorAllocate(), 392 ImageCopyResized(), 561 ImageCreate(), 391 ImageCreateFromGIF(), 391, 399 ImageCreateFromJPEG(), 391, 399 ImageCreateFromPNG(), 391, 399 ImageDestroy, 394 ImageFill(), 392 41 525x index 1/24/03 3:39 PM Page 838 839 functions ImageFilledRectangle(), 409-411 ImageGetTTFBBox(), 401 ImageGIF(), 394 ImageJPEG(), 394 ImageLine(), 410 ImagePNG(), 394, 399 ImagePolygon(), 412 ImageRectangle(), 411 images, 412 ImageString(), 393 ImageTTFBBox(), 402 ImageTTFText(), 401, 411 IMAP function library, 586-587 imap_body(), 613-614 imap_delete(), 616 imap_expunge(), 616 imap_fetchheader(), 613 imap_header(), 613 imap_headers(), 610-613 imap_open(), 610 implode() function, 103 ini_get(), 434-435 ini_set(), 434-435 insert_order(), 538 intval(), 89 isset() function, 39, 139 is_uploaded_file(), 344 join() function, 103 krsort() function, 81 ksort() function, 81 list() function, 75-76 load list info(), 648 login(), 489, 640 lstat(), 350 ltrim() function, 98 mail(), 499, 623 mail() function, 97, 358 max() function, 139-140 MAX(column), 215 MIN(column), 215 mkdir(), 347 mktime(), 381-382, 385 myErrorHandler () function, 469 mysql connect(), 460 mysql errno(), 460 mysql error(), 460 mysql pconnect(), 460 mysql query(), 460 mysql select db(), 460 mysql_affected_rows() function, 235 mysql_close() function, 229 mysql_connect() function, 229 mysql_fetch_array() function, 231 mysql_fetch_row() function, 231 mysql_free_result() function, 236 mysql_numrows() function, 231 mysql_pconnect() function, 228-229 mysql_query() function, 230-231 mysql_result() function, 232 mysql_select_db() function, 230 naming, 132-133 network lookup functions, 361-365 next() function, 90 nl2br() function, 98 notify password(), 496 number_of_accounts(), 605 ODBC functions, 236 opendir(), 346 open_mailbox(), 609 parameters, 133-134, 137-138 passthru(), 352 PASSWORD(), 301 pdf add outline(), 727 pdf begin page(), 727 pdf close(), 729 pdf fill(), 736 pdf open(), 726 pdf rect(), 735 pdf replace(), 723 pdf set info(), 726 pdf setlinewidth(), 735 pdf show xy(), 735 pdf show(), 728 pdf string width(), 735 How can we make this index more useful? Email us at indexes@samspublishing.com 41 525x index 1/24/03 3:39 PM Page 839 840 functions pdf stroke(), 735 PHP environment variables, 354-355 phpinfo(), 355, 712 posix_getgrgid(), 350 posix_getpwuid(), 350 pretty(), 648 prev() function, 90 print() function, 98 printf() function, 99-100 prototypes, 129 putenv(), 354-355 query select(), 575 range() function, 72 readdir($dir), 346 readdir(), 346 readfile(), 63 recommend urls(), 507 recursive functions, 141-143 register(), 486 rename(), 351 reset password(), 496 reset() function, 90 retrieve_message(), 612, 615 returning from, 138-139 reverse sort functions, 81 rewind(), 65 rewinddir($dir), 347 rmdir(), 347 rsort() function, 81 runtime errors, 458-459 safeString(), 757 send(), 667 send_message(), 616-618 serialize(), 431-432, 781 session_get_cookie_params(), 415 session_is_registered(), 417 session_register(), 417 session_start(), 416, 419 session_unregister(), 418-420 set error handler() function, 468 setcookie(), 414-415 settype() function, 38 set_magic_quotes_runtime(), 430 shopping carts (Amazon), 781-784 showBrowseNode(), 758-760 showCart(), 785 ShowCategories(), 758 ShowSmallCart(), 757 showSummary(), 760, 777 show_source(), 435 shuffle() function, 84-85 sin(), 736 sort() function, 80-81 split(), 116, 580 sprintf() function, 99 stat(), 350 STD(column), 215 STDDEV(column), 215 store account(), 637 store list(), 656 store_account_settings(), 602-603 store_new_post(), 701-703 str replace(), 721 strcasecmp() function, 105 strcmp() function, 105 string case functions, 101 stripslashes(), 248, 323 StripSlashes() function, 102, 228 strip_tags(), 323 stristr() function, 107 strlen() function, 106 strnatcmp() function, 106 strpos() function, 107-108 strrchr() function, 107 strrpos() function, 108 strstr(), 501 strstr() function, 107 strtok() function, 104 strtolower() function, 101 strtoupper() function, 101 str_replace() function, 108 subscribe(), 651 substr() function, 104-105 substr_replace() function, 109 41 525x index 1/24/03 3:39 PM Page 840 841 guidelines SUM(column), 215 system(), 352 touch(), 351 trim() function, 98, 227 uasort() function, 83 ucfirst() function, 101 ucwords() function, 101 uksort() function, 83 umask(), 347 undefined functions, calling, 130 UNIX_TIMESTAMP, 384 unlink(), 65, 351 unserialize(), 432, 781 unset() function, 39 unsubscribe(), 651 url_encode(), 361 usort() function, 82-83 valid email(), 484-485 values, returning, 139-140 variable functions, 38-40 variable scope, 135-137 xml_parser_create(), 772 fwrite() function, parameters, 59 G gd documentation, Web site, 412 generating images, automatically, 395 get archive() function, 649 get email() function, 641 GET parameters, 771 get random word() function, 497 get unsubscribed lists() function, 646 get user urls() function, 489 get writer record() function, 572 getARS() function, 760, 777-778 getCategoryName() function, 758-759 getdate() function, 382 getenv() function, 354-355 gethostbyaddr() function, 365 gethostbyname() function, 362, 365 getlastmod() function, 434 getmxrr() function, 362, 365 gettype() function, 38 get_accounts() function, 602 get_account_list() function, 605 get_categories() function, 522 get_category_name() function, 525 get_current_user() function, 433 get_extension_funcs() function, 433 get_loaded_extensions() function, 433 get_magic_quotes_gpc() function, 430 get_magic_quotes_runtime() function, 430 get_post() function, 695-696 get_post_title() function, 699 Ghostscript PostScript interpreter, 709 Ghostscript Web site, 709 GIF (Graphics Interchange Format), 389- 390 global privileges, 186 global scope, 135 global variables, 135 Gnu Privacy Guard (GPG), 325-333 GNU Privacy Guard Web site, 325 goods (commercial Web sites), 265-268 Google Web site, 744 GPG (Gnu Privacy Guard), 325-333 GRANT command, 185-186, 189, 241 privilege, 248 statement, 241, 249 grant tables, 242, 245-246 Graphics Interchange Format (GIF), 389- 390 graphing data, 404-412 graphs data, code for drawing, 408-410 line, script for outputting, code, 390 variables, code for drawing, 407 Web sites, 412 green-button.png file, 399 Gregorian calendar, 385-386 GROUP BY clause, 216 grouping data, 215-217 guidelines, code, 442 How can we make this index more useful? Email us at indexes@samspublishing.com 41 525x index 1/24/03 3:39 PM Page 841 . 35 0-3 51 closeddir(), 346 closedir($dir), 346 code blocks, 14 0-1 41 commands, running on Web servers, 35 2- 354 copy(), 351 cos(), 736 COUNT(items), 215 creating, object-oriented development, 15 7-1 58 crypt(),. 13 9-1 40 MAX(column), 215 MIN(column), 215 mkdir(), 347 mktime(), 38 1-3 82, 385 myErrorHandler () function, 469 mysql connect(), 460 mysql errno(), 460 mysql error(), 460 mysql pconnect(), 460 mysql. function, 236 mysql_ numrows() function, 231 mysql_ pconnect() function, 22 8-2 29 mysql_ query() function, 23 0-2 31 mysql_ result() function, 232 mysql_ select_db() function, 230 naming, 13 2-1 33 network