855 Symbols & (Ampersand), 211 && (AND Operator), 608 `` (Backquotes/Backticks), 143 & (Bitwise AND) Operator, 1
Total Page:16
File Type:pdf, Size:1020Kb
index.fm Page 855 Wednesday, October 25, 2006 1:28 PM Index Symbols A & (ampersand), 211 abs() function, 117 && (AND operator), 608 Access methods, 53, 758–760 `` (backquotes/backticks), 143 ACTION attribute, 91 & (bitwise AND) operator, 140 action attribute, 389–390, 421 ~ (bitwise NOT) operator, 141 addcslashes() function, 206–208, 214 | (bitwise OR) operator, 140 Addition (+), 112 ^ (bitwise XOR) operator, 140 addslashes() function, 206–208, 214 ^ (caret metacharacter), 518, 520–521 admin_art_edit.php, 784, 793–796 " (double quote), 211 admin_art_list.php, 784 @ (error control) operator, 143–145 admin_artist_edit.php, 784, 788–789 > (greater than), 211, 608, 611-612 admin_artist_insert.php, 784, 791–792 << (left shift) operator, 141 admin_artist_list.php, 784, 786–787, < (less than), 211, 608, 611-612 796 * metacharacter, 536–538 admin_footer.php, 784 !, NOT operator, 608 admin_header.php, 784, 803 < operator, 608, 611–612 admin_login.php, 784, 797, 803 <= operator, 608 Advisory locking, 474 <>, != operator, 608–609 Aliases, 630–631 = operator, 608–609 Alphabetic sort of, 299–300 > operator, 608, 611–612 Alphanumeric word characters, metasymbols -> operator, 743–744 representing, 531–533 >= operator, 608 ALTER command, 631 || (OR operator), 130–132, 608 ALTER TABLE statement, 620, 631–633 >> (right shift) operator, 141 Alternation, metacharacters for, 543 ' (single quote), 211, 352–353, 609 Anchoring metacharacters, 520–523 % wildcard, 613–614 beginning-of-line anchor, 520–523 >>> (zero-fill right shift) operator, end-of-line anchor, 522 141 word boundaries, 523 855 index.fm Page 856 Wednesday, October 25, 2006 1:28 PM 856 Index AND operator, 612–613 array_multisort() function, 298, 334 && (and) operator, 127–128 array_pad() function, 251 compared to using the word AND, 132 array_pop() function, 311–312, 332 Apache Web server, 14, 834 array_product() function, 332 configuring to use PHP module (all array_push() function, 315, 317–318, 332 platforms), 851–852 array_rand() function, 306, 310, 332 installing on Windows, 849–850 array_reduce() function, 332 testing installation, 852 array_reverse() function, 332 Appending to files, 473–474 array_search() function, 333 Application Programming Interface (API), 5 array_shift() function, 311, 313, 332 area.php, 146 array_slice() function, 320–321, 332 Arguments, 27, 29, 339, See also Passing array_splice() function, 311, 315, 318– arguments 321, 332 defined, 341 array_sum() function, 331 missing, 344–345 array_udiff() function, 333 names of, 341–342 array_udiff_assoc() function, 333 passing, 341–351 array_udiff_uassoc() function, 333 variable number of, 345–347 array_uintersect() function, 334 Arithmetic operators, 112–113 array_uintersect_assoc() function, array() function, 251–252, 330 334 (array) operator, 119 array_uintersect_uassoc() function, array_change_key_case() function, 333 334 array_chunk() function, 332 array_unique() function, 314–315, 332 array_combine() function, 251 array_unshift() function, 315–316, 332 array_count_values() function, 278–279, array_values() function, 283–284, 331, 333 333 array_diff() function, 333 array_walk() function, 332 array_diff_assoc() function, 333 array_walk_recursive() function, 332, array_diff_key() function, 333 360 array_diff_ukey() function, 333 Arrays, 46, 95, 247–335 array_diff_unassoc() function, 333 accessing an array’s elements (values), array_fill() function, 251, 255–256, 330 257–262 array_filter() function, 332 alphabetic sort, 299–300 array_flip() function, 332 array() function, 251–252, 330 array_intersect() function, 334 array identifier [ ], 252–253 array_intersect_assoc() function, 334 array_combine() function, 251 array_intersect_key() function, 334 array_count_values() function, 278– array_intersect_uassoc() function, 334 279, 333 array_intersect_ukey() function, 334 array_fill() function, 251, 255–256, array_key_exists() function, 331 330 array_keys() function, 281–282, 331 array_keys() function, 281–282, 331 array_map() function, 332, 359, 359–360 array_merge() function, 323, 325, 331 array_merge() function, 323, 325, 331 array_pad() function, 251 array_merge_recursive() function, 326, array_push() function, 315, 317–318, 331 332 index.fm Page 857 Wednesday, October 25, 2006 1:28 PM Index 857 array_slice() function, 320–321, 332 print_r() function, 262–264 array_unshift() function, 315–316, var_dump() function, 265–266 332 randomizing, 306–310 array_values() function, 283–284, 331, range() function, 251, 253–255 333 removing, 310–315 associative, 248 removing duplicate values from, 314–315 elements of, 259–260 reversed sort, 302 merging, 325 sizeof() function, 277–279, 333 sort by key, 305–306 sort by key, 305–306 sort by values, 302–303 sort by values, 302–303 checking for the existence of, 274–275 in reverse order, 303–304 combining/merging, 322–327 sorting, 298–306 compact() function, 251 splicing, 318–321 count() function, 278–279 arsort() function, 298, 303–304, 334 creating and naming, 251–256 Art gallery, building (example), See Canvas creating from strings, 275–277 Gallery Web project creating strings from, 275–277 artist_detail.php, 784, 798, 800–801 creating variables from array elements, AS keyword, 630 286–293 ASCII character set, 125 defined, 247 asort() function, 298, 334 each() function, 284–285, 288, 331 ASP, 14, 41 elements, 247 asp_tags configuration option, 853 adding, 315–319 Assignment operator, 107–108 copying, 320–321 Assignment statement, defined, 108 removing, 310–315 Associative arrays, 248 extract() function, 97, 288–293, and extract() function, 288–293 331, 398–399, 788 merging, 325 extracting keys and values from, 281–286 sort by key, 305–306 finding the size of, 278–280 sort by values, 302–303 functions, 330–335 Associativity, 108–111 list() function, 286–288 rules of, for PHP operators, 110 and loops, 266–273 Attributes, 52, 675, 740–741 mixing elements in, 260–262 AUTH_TYPE, 98 modifying, 310–335 AUTO_INCREMENT attribute, 625 multidimensional, 293–297 Autoglobal arrays, 431 numeric, 248 Autoincrement and autodecrement operators, elements of, 257–258 115–117 shuffling, 309–310 AVG() function, 634 numeric sort, 300–301 Axmark, David, 7 numerically indexed, merging, 323–324 operators, 327–330 B equality operator, 329–330 Backquotes, 143 identical operator, 329–330 Backslash (/), 62 union operator, 327–328 Backticks, 74, 143 printing, 262–266 Base class, 763 index.fm Page 858 Wednesday, October 25, 2006 1:28 PM 858 Index base_convert() function, 117 header.php page, 797–798 basename() function, 485–486 index.php page, 798–799 BBEdit, 15 public/private pages, 783 Beginning-of-line anchor, 520–523, 521 securing pages with login, 803–805 Berners-Lee, Tim, 1, 3 Web site, creating, 785–805 BETWEEN operator, 608, 615 where to find the files for, 805 BIG5, 214 Capturing, 545–547 BIG5-HKSCS, 214 Caret (^) metacharacter, 518, 520–521 Binary operators, 107 Carriage return, 24 bindec() function, 117 Case sensitivity, SQL commands, 599–600 binhex() function, 214 Case statement, 228 Bits, 140 Casting operators, 118–120 Bitwise operators, 140–143 C/C++, 41, 49 shift operators, 141–142 ceil() function, 117 using, 140 CGI script, 2 Black box, See Functions Character classes, 525–526 BLOB data type, 622 Character list (charlist), 182, 512 Block, 132 charset, 211 (bool) operator, 119 CHAR(SIZE) data type, 622 Boolean literals, 68 checkbox input type, 388, 406–407 Boolean values, 44 checkdate() function, 831–832 break statement, 51, 239–243 chgrp() function, 447 Browser: chmod() function, 447–448 and HTML forms, 380–383 chop function, 167fn, 182, 214 using to remove cookies, 693–694 chown() function, 447 Built-in constants, 103 chr() function, 205, 214 Built-in functions, PHP, 27–28, 69 chunk_split function, 214 Bytes, 140, 149 Chunks, 814 Class constants, 774–775, 775 C Class members, 742 Callback functions, 358, 358–362 __CLASS__, 103 array_map() function, 359–360 Classes, 52–53 array_walk_recursive() function, 360 accessor or instance methods defined, 358 (setters/getters), 758–760 Canvas Gallery Web project, 783–808 class constants, 774–775 administration pages, 786–788 constructors, 753–756 database, creating, 785–786 creating, 746–747 files, 784 defined, 740 installing, 805–808 destructors, 756–758 MySQL database, installing, 806–807 encapsulation, 749–750 PHP pages, editing, 808 functions for getting class information, public pages, 797–803 748–749 artist_detail.php page, 798, 800– information hiding, 749–750 801 inheritance, 741, 763–766 contact.php page, 802–803 instantiating, 741–742 index.fm Page 859 Wednesday, October 25, 2006 1:28 PM Index 859 magic methods, 753–762 creating with the define() function, members, 742 100–101 and scope, 750–752 defined, 99–100 methods, 742 magic, 102 and objects, 740 predefined, 102–103 difference between, 742 __construct() method, 753 overriding methods, 766–768 Constructors, 753–756 properties, 742 and inheritance, 763–766 protected access, 768–771 contact.php, 784 reusing, 776–780 contact.php page, 802–803 static members, 773–774 continue control statement, 239–243 working with, 741–772 continue statement, 51 Classes and objects, 52–54 Control statements, loops, 239–243 Client/server databases, 568 Control string, 156 Client/server model, 7 convert_cyr_string function, 214 clock.php, 354 convert_uudecode function, 214 Clustering, 544, 544–545 convert_uuencode function, 214 Codd, E.F. “Ted,” 595 converter() function, 377 ColdFusion, 14 $_COOKIE global array, 678–681 Command, 597 Cookie jar, 674 Command-line applications, defined, 32 Cookies, 673–736 Command-line