1. Trang chủ
  2. » Công Nghệ Thông Tin

PHP and MySQL Web Development - P176 doc

5 95 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 74,33 KB

Nội dung

847 MLM (mailing list manager) ltrim() function, 98 LZW (Lempel Ziv Welch), 389 M magic quotes, 429-430, 516 magic_quotes_gpc directive, 323 magic_quotes_runtime directive, 323 Mail Exchange (MX) records, 365 mail() function, 97, 358, 499, 623 mailbox (Warm Mail application), viewing contents of, 608-611 mailing list manager. See MLM mail_fns.php library, get_accounts() func- tion, 602 main page (Shopping Cart application), 519-524 maintainability, code, 442-446 make_button.php, 396 management systems, content, 555 building, 556 databases versus file storage, 557 document structure, 558 editing, 556 editor screen, 581-582 file upload method, 556 FTP access, 556 headlines.php, 565-568 implementing, 565-568, 572, 575 keywords, 578, 581 manipulating, images, 560-562 many-to-many relationships (databases), 173 Maranda, Steve, 412 matching regular expressions, 109 * symbol, 112 + symbol, 112 branching, 113 caret symbol (^), 112-113 character classes, 111 character sets, 110-111 curly braces ({}), 112 finding substrings, 115 literal special characters, 113 replacing substrings, 115 slash (\), 113 special characters, 113-114 splitting strings, 116 subexpressions, 112 Web references, 116 substrings, 106-109, 115 max() function, 139-140 MAX(column) function, 215 MaxClients parameter (Apache), 229 max_connections parameter, 229 medium style form variable, 20 member.php, 476 members_only.php script (authentication), 426 memory, freeing up (mysql_free_result() function), 236 message headers (Warm Mail application), viewing, 614-615 messages, sending (online newsletters), 666, 671-673 meta tags (HTML), 157 metadata, 558 methods ASINSearch(), 761 browseNodeSearch(), 761, 769-770 cDataHandler(), 773 endElementHandler(), 773 parseXML(), 772 startElementHandler(), 773 Microsoft Word, 707-708 MIME mail package, installing, 810 MIN(column) function, 215 mirroring files, FTP functions, 366-372 MIT Distribution Center for PGP Web site, 325 mktime() function, 381-382, 385 MLM (mailing list manager) actions, 634-635 building, 621 files, 624-625 How can we make this index more useful? Email us at indexes@samspublishing.com 41 525x index 1/24/03 3:39 PM Page 847 848 mlm_fns.php mlm_fns.php, 625 mode parameters, 771 mode variable, 756, 771 modeling, real-world objects (Web data- bases), 173 modes, file modes, 53 modification anomalies, avoiding (Web databases), 174 modification dates (scripts), 434 modification of data (security threats), 277-278 MODIFY [COLUMN] column_description syntax, 219 modular names, code, 444 modules, PHP (running), 790 modulus operator, 28 mod_auth module (Apache Web server), 305 mod_auth_mysql module, 310-313 mod_SSL, 796-797 Mod_SSL Web site, 791 moving files, 351 multidimensional arrays sorting, 82-84 three-dimensional arrays, 79-80 two-dimensional arrays, 77-79 multiple files, uploading, 660, 665 multiple inheritance (object-oriented development), 154-155 multiple programmers, version control (code), 447 multiplication operator, 28 MX (Mail Exchange) records, 365 myErrorHandler() function, 469 MyISAM table, 256 myisamchk utility, 253-254 MySQ, 258 MySQL access, 181-182 adding support to IIS, 808 aggregate functions, 215 continuation symbol, 182 databases creating, 184, 236 deleting, 236 results.php script, 225-226 selecting, 190-191 tables, creating, 191-195 viewing, 195 Web database architecture, 224-226 date and time converting between PHP and MySQL formats, 383-384 DATE_FORMAT() function, 383-384 MySQL Web site, 386 UNIX_TIMESTAMP function, 384 errors, 459-461 GRANT command, 185-186, 189 identifiers, 196-197 installation binary installations, 790-791 deleting anonymous user, 804 setting PATH, 803 setting root password, 804 source installations, 791 Unix, 792-794 Windows, 801-803 join types, 214 logging in to, 183-184 logging out of, 190 max_connections parameter, 229 mod_auth_mysql module, 310-313 mysql command, 183 privileges, 185-190 resources, 815 REVOKE command, 188-189 semicolons (;), 182 syntax, extended, 216 users, 184-190 Web site, 182 mysql command, 183 mysql connect() function, 460 mysql database, 241, 245 MySQL database, connection verification, 245 41 525x index 1/24/03 3:39 PM Page 848 849 object-oriented (OO) development mysql database, 243-244 MySQL database, request verification, 246 mysql database, 242-245 mysql errno() function, 460 mysql error() function, 460 MySQL online manual, Web site, 202 mysql pconnect() function, 460 mysql query() function, 460 mysql select db() function, 460 MySQL Web site, 221, 258, 310, 386, 791, 805, 811, 815 mysqladmin facility, 196 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 N naming functions, 132-133 naming conventions, code, 443-444 Natural Order String Comparison Web site, 106 navigating files, 65-66 navigating within an array, 90 nesting XML elements, 743 NET START MySQL command, 802 Netscape Web site, 333, 415 network lookup functions, 361-365 network services, connecting, 461-462 New York Times Web site, 294 newbooks.txt file, 257 newline control sequence (\n), 59 newsletters, online accounts, 636-639, 652 administrative functions, 655 attachments, 623 databases, setting up, 625-627 diagrams, 623-624 file upload, 622 HTML version, 623 Lists archives, viewing, 649-650 creating, 655-657 viewing, 642-649 logging in, 639-641 logging out, 654 login, implementing, 635-636, 639 passwords, 652-654 plain text, 623 previewing, 665-666 requirements, 621-622 script architecture, 627, 634-635 sending messages, 666, 671-673 subscribing, 650-652 unsubscribing, 650-652 uploading, 657-660, 665 next() function, 90 nl2br() function, 98 nodes browse nodes (Amazon), 748 Web forum tree structure, 676-677 NOT NULL keyword, 192 notify password() function, 496 null values, avoiding (Web databases), 176- 177 number_of_accounts() function, 605 numeric column types, 197-198 numerical position of substrings, finding, 107-108 numerically indexed arrays, 72-74 NuSOAP, 747 O object-oriented (OO) development, 145 attributes, 146-151 classes, 146-149, 155-156 constructors, 148-149 How can we make this index more useful? Email us at indexes@samspublishing.com 41 525x index 1/24/03 3:39 PM Page 849 850 object-oriented (OO) development encapsulation, 146 inheritance, 147, 152-155 operations, 146-148, 151-152 polymorphism, 147 writing code, 156-158, 162-165 ODBC (Open Database Connectivity), functions, 236 one level up directory symbol ( ), 346 one-to-many relationships (databases), 173 one-to-one relationships (databases), 172 online editing, content management sys- tems, 556 online brochures (commercial Web sites), 262-264 online newsletters, 621 accounts creating, 636-639 settings, 652 administrative functions, 655 attachments, 623 databases, setting up, 625-627 diagrams, 623-624 file upload, 622 HTML version, 623 list archives, viewing, 649-650 lists creating, 655-657 viewing, 642-649 logging in, 639-641 logging out, 654 login, implementing, 635-636, 639 passwords, 652-654 plain text, 623 previewing, 665-666 requirements, 621-622 script architecture, 627, 634-635 sending messages, 666, 671-673 subscribing, 650-652 unsubscribing, 650-652 uploading, 657-660, 665 OO (object-oriented) development, 145 attributes, 146-151 classes, 146 creating, 147-149 designing, 155-156 instantiation, 149 constructors, 148-149 encapsulation, 146 inheritance, 147, 152-155 operations, 146-148, 151-152 polymorphism, 147 writing code, 156-158, 162-165 Oodie.com Web site, 814 Open Database Connectivity (ODBC), functions, 236 opendir() function, 346 opening files file modes, 53 fopen() function, 54-56 FTP (File Transfer Protocol), 56 HTTP (Hypertext Transfer Protocol), 56 potential problems, 56-58 opening tags (XML), 743 OpenSSL, setting up, 796 OpenSSL Web site, 791 open_mailbox() function, 609 operating systems, database security, 247 operations (object-oriented development), 146, 158 calling class operations, 151-152 constructors, 148-149 creating, 148 operators arithmetic operators, 28-29 assignment (=), 22 assignment operators, 24, 29-31 associativity, 37 bitwise operators, 33-34 comma operator, 34 comparison operators, 32-33, 208 error suppression operator, 34-35 execution operator, 35 41 525x index 1/24/03 3:39 PM Page 850 851 PDF (Portable Document Format) logical operators, 33 precedence, 37-38 string concatenation operator, 22-23 string operators, 29 ternary operator, 34 totaling forms, 35-36 optimizing databases, 254-256 optimizing (code), 451-452 or operator, 33 ORDER BY clause, SELECT statement, 214 ordered data, retrieving, 214-215 ordering strings, 105-106 orders for goods or services (commercial Web sites), 265-268 orders.txt file, 60 output EXPLAIN statement, 251, 254 formatting, 559 SHOW GRANTS statement, 249 outputting images, 393-394 line graphs, script code, 390 output_fns.php, 476, 598, 625 overriding (inheritance), 153-154 owners (scripts), identifying, 433 P p switch (add – to front) (mysql com- mand), 183 Page class (object-oriented development), 158, 162-163 page parameters, 771 page variable, 756, 771 page.php, 562 page.php file, 567-568 pages (Web pages), authentication, 301- 302 parameters $type, 761 Apache, MaxClients, 229 BrowseNodeSearch, 771 dev-t, 771 drawing functions, 392 extract() function, 93 f, 771 function parameters, 133-134 calling functions, 129 pass by reference, 137-138 pass by value, 137 GET, 771 max_connections parameter, 229 mode, 771 page, 771 sort, 771 startup, 802 t, 771 type, 771 parent nodes (Web forum tree structure), 677 parseXML() method, 772 parse_url() function, 364 parsing XML (Amazon), 747 pass by reference (function parameters), 137-138 pass by value (function parameters), 137 passing by reference, 92 passthru() function, 352 PASSWORD() function, 301 passwords, 282-283, 474 database security, 247 encrypting, 247, 300-301 logging in to MySQL, 183-184 MLM, 652-654 root, setting in MySQL installation, 804 storing, 247, 297-300 user authentication, 492-499 PATH, setting in MySQL installation, 803 Paths, file, 347 payment module (Shopping Cart applica- tion), 542-544 payment systems, Shopping Cart applica- tion, 512-513 PDF (Portable Document Format), 705 How can we make this index more useful? Email us at indexes@samspublishing.com 41 525x index 1/24/03 3:39 PM Page 851 . 22 5-2 26 selecting, 19 0-1 91 tables, creating, 19 1-1 95 viewing, 195 Web database architecture, 22 4-2 26 date and time converting between PHP and MySQL formats, 38 3-3 84 DATE_FORMAT() function, 38 3-3 84 MySQL Web site,. 848 849 object-oriented (OO) development mysql database, 24 3-2 44 MySQL database, request verification, 246 mysql database, 24 2-2 45 mysql errno() function, 460 mysql error() function, 460 MySQL online. 18 5-1 90 resources, 815 REVOKE command, 18 8-1 89 semicolons (;), 182 syntax, extended, 216 users, 18 4-1 90 Web site, 182 mysql command, 183 mysql connect() function, 460 mysql database, 241, 245 MySQL database, connection

Ngày đăng: 07/07/2014, 03:20