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

Phát triển web với PHP và MySQL - p 86 docx

10 310 0

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

THÔNG TIN TÀI LIỆU

files 825 EXPLAIN statement, 257-260 column values, 259 join types, 258 output, 257, 260 explode() function, 86-87, 102, 377 exploits, BUGTRAQ archives Web site, 357 exporting public keys (Gnu Privacy Guard), 340 extended syntax, 222 extends keyword, 155 extensions loading dynamically, 453 Shopping Cart application, 584 Warm Mail application, 652-653 Web forum application, 741 extensions (filename extensions), require() statement, 120-121 extract() function, 91-92 extract_type parameter, 91 extract_type parameter (extract() function), 91 F f file mode, 54 FastTemplate Web site, 472 fclose() function, 58, 359 fdf create() function, 762 fdf set file() function, 762 fdf set value() function, 762 FDF Web site, 763 Fedex Web site, 276 feof() function, 60 fgetc() function, 62-63 fgetcsv() function, 61 fgets() function, 60 fgetss() function, 61 fields scope, 248 userfile (HTML form), 354 fields (tables), 173 figures, drawing, 419-428 file, interacting with, 361 File Details view, 363 file modes, 52 file paths, from directories, 360 FILE privilege, 191, 253 File Transfer Protocol (FTP), 378-387 anonymous login, 381 filetime() function, 383 file_exists() function, 383 FTP transfer modes, 384 ftp_connect() function, 382 ftp_fput() function, 385 ftp_get() function, 385 ftp_login() function, 382 ftp_mdtm() function, 383- 384 ftp_nlist() function, 386 ftp_put() function, 385 ftp_quit() function, 385 ftp_size() function, 386 mirroring files, 379, 381-385 closing connections, 385 connecting to remote FTP server, 382 downloading files, 384-385 file update times, check- ing, 383-384 logging in to FTP server, 382 set_time_limit() function, 386 timeouts, avoiding, 386 uploading files, 385 file update times, check- ing (mirroring files), 383-384 file upload, 352-353 displaying, 357 HTML, 353-354 code, 353 HTML forms, 352 online newsletters, 657 PHP, writing, 354-357 problems, 358 file upload method, 589-590 file() function, 62 fileatime() function, 363 filedetails.php file, 362 filegroup() function, 362-363 filemtime() function, 363 filename extensions, require() statement, 120-121 fileowner() function, 362-363 fileperms() function, 363 files, 50-51 auto append file, 593 auto prepend file, 593 backing up, 301 FTP functions, 379-385 blue-button.png, 414 book_insert.sql, 210 browsedir.php, 358 BUGTRAQ archives Web site, exploits, 357 40 7842 index 3/6/01 4:22 PM Page 825 files 826 catching, code, 354-356 checking existence of, 63 checking size of, 63 closing, 58-59 content management systems, 595 create database.sql, 595-586 db fns.php, 595 delete story.php, 596 footer.php, 595 header.php, 595 headlines.php, 596 include fns.php, 595 keyword add.php, 596 keyword delete.php, 596 keywords.php, 597 login.php, 596 logo.gif, 597 page.php, 597 publish story.php, 596 publish.php, 596 resize image.php, 596 search form.php, 596 search.php, 596 select fns.php, 595 stories.php, 596 story submit.php, 596 story.php, 596 unpublish story.php, 596 user auth fns.php, 595 create_database.sql, 597 creating, 364-365 data, loading from, 263 db_fns.php, 605 deleting, 63, 364-365 delete_fns.php, 611 design_button.html, 411-412 disadvantages, 66 downloading (FTP servers), 384-385 filedetails.php, 362 footer.php, 599 formats, 58 green-button.png, 414 headlines.php, 599 htaccess files (Apache Web server) basic authentication (HTTP), 316-319 httpd.conf, 790 index.html, 752-754 interacting with, 361 listings in directories, 359 loading arrays from, 85-87 locking, 65-66 log files, 299-300 logout.php, 605 make_button.php, 412 mirroring (FTP functions), 379-385 MLM, 660 create_database.sql, 660 data_valid_fns.php, 660 db_fns.php, 660 include_fns.php, 660 index.php, 660 mlm_fns.php, 660 output_fns.php, 660 upload.php, 660 user_auth_fns.php, 660 moving, 364-365 multiple, uploading, 698- 702 navigating inside files, 64 newbooks.txt, 263 opening, 52 file modes, 52 fopen() function, 53-54 FTP (File Transfer Protocol), 54-55 HTTP (Hypertext Transfer Protocol), 55 potential problems, 55-56 page.php, 600-602 pdf.php, 752 pdflib.php, 753 personalized documents, certification project, 752 php.ini, 799 php.ini file auto_append_file, 126-127 auto_prepend_file, 126-127 directives, editing, 453-454 PHPBookmark application, 501 add_bms.php, 501 add_bm_form.php, 501 bookmark.gif, 502 bookmarks.sql, 501 bookmark_fns.php, 501 change_passwd.php, 501 change_passwd_form.p hp, 501 data_valid_fns.php, 501 db_fns.php, 502 delete_bms.php, 501 forgot_form.php, 501 forgot_passwd.php, 501 login.php, 501 logout.php, 501 member.php, 501 output_fns.php, 502 recommend.php, 501 register_form.php, 501 register_new.php, 501 40 7842 index 3/6/01 4:22 PM Page 826 fopen() function 827 url_fns.php, 502 user_auth_fns.php, 502 pollsetup.sql, 420 progex.php, 366 properties, changing, 364 reading, 52, 361-364 feof() function, 60 fgetc() function, 62-63 fgetcsv() function, 61 fgets() function, 60 fgetss() function, 61 file() function, 62 fopen() function, 60 fpassthru() function, 62 fread() function, 63 readfile() function, 61 vieworders.php inter- face, 59-60 red-button.png, 414 rtf.php, 752, 759 score.php, 752-757 select_fns.php, 609 Shopping Cart application, 544-545 showpoll.php, 422-426 signature.tif, 753 simplegraph.php, 405 status function results, code, 362, 366-367 storage, content manage- ment systems, 590 stories.php, 602-611 upload.html, 353 upload.php, 354 uploading (FTP functions), 385 variables, 354 vote.html, 420 Warm Mail application (email client), 621 Web forum application, 715 writing to, 52 file formats, 58 fwrite() function, 57 filesize() function, 63, 364 filetime() function, 383 filetype() function, 364 file_exists() function, 63, 383 filled out() function, 510-511 filtering input data (Web databases), 233 find and replace, substrings, 108-109 finding substrings, 105-107 numerical position, 107-108 strpos() function, 107-108 strrpos() function, 107 strstr() function, 106-107 with regular expres- sions, 114-115 fire suppression systems, 302 firewalls, 300 FishCartSQL, 584 fitting text onto buttons, 415-418 flat files, 50-51 checking existence of, 63 checking size of, 63 closing, 58-59 deleting, 63 disadvantages, 66 formats, 58 locking, 65-66 navigating inside files, 64 opening, 52 file modes, 52 fopen() function, 53-54 FTP (File Transfer Protocol), 54-55 HTTP (Hypertext Transfer Protocol), 55 potential problems, 55-56 reading, 52 feof() function, 60 fgetc() function, 62-63 fgetcsv() function, 61 fgets() function, 60 fgetss() function, 61 file() function, 62 fopen() function, 60 fpassthru() function, 62 fread() function, 63 readfile() function, 61 vieworders.php inter- face, 59-60 writing to, 52 file formats, 58 fwrite() function, 57 floating point data types (numeric column types), 201-202 flock() function, 65 floor() function, 399 focus groups, 271 fonts buttons, 411 descenders, 417 FreeType library, downloading, 402 images, creating, 410-419 PostScript Type 1 fonts, downloading (FTP site), 402 TrueType, 411 footer.php, 595 footers, script architec- ture, 663 fopen() function, 52-56, 60, 359, 373, 528 40 7842 index 3/6/01 4:22 PM Page 827 for loops 828 for loops, 45-46 foreign keys (databases), 175 forgot_form.php, 501 forgot_passwd.php, 501 format codes, date() function, 392-394 formatting output, 592-593 strings, 96-101 AddSlashes() function, 101 case, changing, 99-100 chop() function, 97 conversion specifica- tions, 98-99 for printing, 97-99 for storage, 100-101 HTML formatting, 97 ltrim() function, 97 nl2br() function, 97 StripSlashes() function, 101 trim() function, 96 trimming excess whitespace, 96-97 formats files, 58 images, 403 GIF (Graphics Interchange Format), 404 JPEG (Joint Photographic Experts Group), 403 PNG (Portable Network Graphics), 403 WBMP (Wireless Bitmap), 403 personalized documents, 745-748 ASCII, 745 HTML, 745 paper, 745 PDF, 748 PostScript, 747-748 requirements, 749 RTF, 746-747 software, 749-751 word processors, 746 formatting output, 593-594 forms HTML, 229 Bob’s Auto Parts application, 11-13 file upload, 352 processing, 11-13 userfile field, 354 totaling, with operators, 33-34 variables, accessing, 19-21 forum application. See Web forum application forwarding email (Warm Mail application), 651-652 fpassthru() function, 62 fread() function, 63 Free Software Web site, 403 freeing up memory (mysql_free_result() function), 241-242 FreeType library, downloading, 402 fseek() function, 64 ftell() function, 64 FTP (File Transfer Protocol), 378-387 anonymous login, 381 content management systems, 589 file upload method, 589 filetime() function, 383 file_exists() function, 383 FTP transfer modes, 384 ftp_connect() function, 382 ftp_fget() function, 384 ftp_fput() function, 385 ftp_get() function, 385 ftp_login() function, 382 ftp_mdtm() function, 383 ftp_nlist() function, 386 ftp_put() function, 385 ftp_quit() function, 385 ftp_size() function, 386 mirroring files, 379-385 closing connections, 385 connecting to remote FTP server, 382 downloading files, 384-385 file update times, checking, 383-384 logging in to FTP server, 382 opening files, 54-55 set_time_limit() function, 386 timeouts, avoiding, 386 uploading files, 385 FTP servers connecting to (mirroring files), 382 downloading files, 384-385 logging in to (mirroring files), 382 FTP sites, downloading jpeg-6b, 402 PostScript Type 1 fonts, 402 FTP_ASCII mode, 384 ftp_connect() function, 382 ftp_fget() function, 384 40 7842 index 3/6/01 4:22 PM Page 828 functions 829 ftp_fput() function, 385 ftp_get() function, 385 ftp_login() function, 382 ftp_mdtm() function, 383 ftp_nlist() function, 386 ftp_put() function, 385 ftp_quit() function, 385 ftp_size() function, 386 full join, 219 full joins, 215 function libraries, 467 developing, 467 function libraries (PDF), 751 Web sites, 751 function libraries (PHPBookmark application), 501 function names, code, 464 function overloading, 134 function scope, 136 functions, 129-144 accessor functions, 153-154 add bm(), 528 addslashes(), 101, 233, 254, 336 add_quoting(), 737 aggregate (MySQL), 221 applying to array elements, 89-90 array push(), 683 array_count_values() function, 90 array_reverse() function, 84-85 array_walk() function, 89-90 arsort() function, 80 asort() function, 79-80 AVG(column), 221 basename($path), 360 basename(), 363 calculate_items(), 564-565 calculate_price(), 564 calendar functions, 399 Calendar Conversions Overview Web site, 400 PHP Web site, 400 calling, 18, 129-132 case sensitivity, 132 parameters, 130 prototypes, 130 undefined functions, 131 change password(), 520, 690 check admin user(), 669 check logged in(), 669 check normal user(), 669 check valid user(), 515 checkdate(), 396 check_auth_user(), 630 chgrp(), 364 chmod(), 364 chop() function, 97 chown(), 364 chown() function, 364 closeddir(), 359 closedir($dir), 359 code blocks, 142-143 commands, running on Web servers, 365-367 copy(), 365 cos(), 777 COUNT(items), 221 creating, object-oriented development, 160-161 crypt(), 310-311 cURL functions, 387-389 curl_init() function, 388 curl_setopt() function, 388 current() function, 88 date(), 363, 392-395 format codes, 392-394 UNIX time stamps, 394-395 date() function, 17-18 DATE_FORMAT(), 396- 397 db_connect(), 513 db_result_to_array(), 552 declaring, 132-133 decoct(), 363 delete bm(), 531 delete_account(), 636 delete_message(), 648 directories, 358 creating, 361 deleting, 361 file paths, 360 reading from, 358-360 dirname($path), 360 dirname(), 363 diskfreespace($path), 360 display account form(), 673, 689 display button(), 682, 703 display information(), 684 display items(), 679 display list form(), 693 display mail form(), 696 display password form(), 689 display preview button(), 703 display registration form(), 508 display user menu(), 515 display() function, 730 display_account_form(), 633 display_account_select(), 639 40 7842 index 3/6/01 4:22 PM Page 829 functions 830 display_account_setup(), 633, 636 display_book_form(), 581-583 display_cart(), 560-563 display_categories(), 553 display_list(), 640-641 display_post(), 734 display_tree(), 724, 733-734 dl(), 453 do html header(), 669 doubleval(), 254 do_html_header(), 566, 639 draw star(), 777 drawing, parameters, 407 each(), 74-75, 88 empty(), 37 end(), 88 ereg(), 114 eregi(), 114, 373 ereg_replace(), 115 eregi_replace() , 115 escapeshellcmd(), 336, 367 eval(), 449 exec(), 366 expand_all(), 722-723 explode() function, 86-87, 102 extract() function, 91-92 extract_type parameter, 91 fclose(), 58, 359 fdf create(), 762 fdf set file(), 762 fdf set value(), 762 feof(), 60 fgetc(), 62-63 fgetcsv(), 61 fgets(), 60 fgetss(), 61 file status results, code, 362, 366-367 file(), 62 fileatime(), 363 filegroup(), 362-363 filemtime(), 363 fileowner(), 362-363 fileperms(), 363 files creating, 364-365 deleting, 364-365 moving, 364-365 properties, changing, 364 reading, 361-364 filesize(), 63, 364 filetype(), 364 file_exists(), 63 filled out(), 510-511 flock(), 65 floor(), 399 fopen(), 52-56, 60, 359, 373, 528 fpassthru(), 62 fread(), 63 fseek(), 64 ftell(), 64 FTP functions, 378-387 filetime() function, 383 file_exists() function, 383 ftp_connect(), 382 ftp_fget() function, 384 ftp_fput() function, 385 ftp_get() function, 385 ftp_login() function, 382 ftp_mdtm() function, 383 ftp_nlist() function, 386 ftp_put() function, 385 ftp_quit() function, 385 ftp_size() function, 386 mirroring files, 379, 381-385 set_time_limit() function, 386 timeouts, avoiding, 386 uploading files, 385 fwrite(), 57 parameters, 57 get archive(), 686 get email(), 677 get random word(), 523 get unsubscribed lists(), 682 get user urls(), 515 get writer record(), 605 getdate(), 395 getenv(), 367-368 getlastmod(), 452-453 gettype() function, 36 get_accounts(), 634 get_account_list(), 637-638 get_categories(), 552 get_category_name(), 554-555 get_current_user(), 452 get_extension_funcs(), 451-452 get_loaded_extensions(), 451-452 get_magic_quotes_gpc(), 449 get_magic_quotes_ runtime(), 449 get_post(), 733-734 get_post_message(), 737 get_post_title(), 736-737 Header(), 408-409, 760 highlight_file(), 454 highlight_string(), 454 htmlspecialchars(), 336 40 7842 index 3/6/01 4:22 PM Page 830 functions 831 htmlspecialchars() function, 233 ImageArc(), 428 ImageColorAllocate(), 406 ImageCopyResized(), 594 ImageCreate(), 405 ImageCreateFromGIF(), 406, 415 ImageCreateFromJPEG(), 406, 415 ImageCreateFromPNG(), 406, 415 ImageDestroy, 410 ImageFill(), 407 ImageFilledRectangle(), 425-427 ImageGetTTFBBox(), 416 ImageGIF(), 409 ImageLine(), 426 ImagePNG(), 409, 415 ImagePolygon(), 428 ImageRectangle(), 427 images, 428 ImageString(), 407 ImageTTFBBox(), 417 ImageTTFText(), 416, 427 IMAP function library, 619-620 imap_body(), 646 imap_delete(), 648 imap_expunge(), 648 imap_fetchheader(), 646 imap_header(), 646 imap_headers(), 643, 646 imap_open(), 642-643 implode(), 102 ini_get(), 453-454 ini_set(), 453-454 insert_order(), 570-572 intval(), 87 isset() function, 37, 140 is_uploaded_file(), 357 join(), 102 krsort() function, 80 ksort() function, 79-80 list() function, 74-75 load list info(), 685 login(), 515, 676 lstat(), 364 ltrim(), 97 mail(), 95, 525, 658 mail() function, 371 max() function, 141 MAX(column), 221 MIN(column), 221 mkdir(), 361 mktime(), 394-395, 398 myErrorHandler () function, 492 mysql connect(), 482 mysql errno(), 483 mysql error(), 483 mysql pconnect(), 483 mysql query(), 483 mysql select db(), 483 mysql_affected_rows() function, 241 mysql_close() function, 234 mysql_connect() function, 234 mysql_db_query() function, 236 mysql_fetch_array() function, 236-237 mysql_fetch_row() function, 237 mysql_free_result() function, 241-242 mysql_numrows() function, 236 mysql_pconnect() function, 234 mysql_query() function, 235-236 mysql_result() function, 237 mysql_select_db() function, 235 naming, 133-134 network lookup functions, 374-378 checkdnsrr(), 378 explode(), 377 gethostbyaddr(), 377 gethostbyname(), 376-377 getmxrr(), 376-378 parse_url(), 377 next() function, 88 nl2br() function, 97 notify password(), 523 number_of_accounts(), 637 ODBC functions, 242 opendir(), 359 open_mailbox(), 642 parameters, 134-136 pass by reference, 138-139 pass by value, 139 passthru(), 366 PASSWORD(), 311 pdf add outline(), 768 pdf begin page(), 767 pdf close(), 770 pdf fill(), 777 pdf open(), 767 pdf rect(), 775 pdf replace(), 763 pdf set info(), 767 pdf setlinewidth(), 775 pdf show xy(), 776 pdf show(), 769 pdf string width(), 776 pdf stroke(), 775 PHP environment variables, 367-368 40 7842 index 3/6/01 4:22 PM Page 831 functions 832 phpinfo(), 368, 751 posix_getgrgid(), 363 posix_getpwuid(), 363 pretty(), 685 prev() function, 88 print(), 97 printf(), 98-99 prototypes, 130 putenv(), 367-368 query select(), 609 range() function, 71 readdir($dir), 359 readdir(), 359 readfile(), 61 recommend urls(), 534 recursive functions, 143-144 register(), 511 rename(), 365 reset password(), 523 reset() function, 88 retrieve_message(), 645-647 returning from, 140 reverse sort functions, 80 rewind(), 64 rewinddir($dir), 360 rmdir(), 361 rsort() function, 80 runtime errors, 481-482 send(), 704 send_message(), 650-651 serialize(), 450-451 session_get_cookie_param s(), 432 session_is_registered(), 434 session_register(), 433 session_start(), 433, 436 session_unregister(), 434-436 set error handler() function, 492 setcookie(), 431-432 settype() function, 36 set_magic_quotes_ runtime(), 449 show_source(), 454 shuffle() function, 83-84 sin(), 777 sort() function, 79 split(), 115-116, 614 sprintf(), 98 stat(), 364 STD(column), 221 STDDEV(column), 221 store account(), 674 store list(), 694 store_account_settings(), 634-635 store_new_post(), 739-741 str replace(), 761 strcasecmp(), 105 strcmp(), 104 string case functions, 99-100 stripslashes(), 101, 233, 254, 336 strip_tags(), 336 stristr(), 107 strlen(), 105 strnatcmp(), 105 strpos(), 107-108 strrchr(), 107 strrpos(), 107 strstr(), 106-107, 528 strtok(), 102-103 strtolower(), 100 strtoupper(), 108 str_replace(), 108-109 subscribe(), 688 substr(), 103-104 SUM(column), 221 system(), 366 touch(), 365 trim() function, 96, 232 uasort() function, 82 ucfirst(), 100 ucwords(), 100 uksort() function, 82 umask(), 361 undefined functions, call- ing, 131 UNIX_TIMESTAMP, 397-398 unlink(), 63, 365 unserialize(), 451 unset() function, 37 unsubscribe(), 688 url_encode(), 374 usort() function, 80-82 valid email(), 510-511 values, returning, 141-142 variable functions, 36-38 re-interpreting variables, 37 type testing functions, 36 variable status, testing, 37 variable scope, 136-138 fwrite() function, 57 parameters, 57 G gd documentation, Web site, 428 generating images automatically, 410 get archive() function, 686 get email() function, 677 get random word() function, 523 get unsubscribed lists() function, 682 40 7842 index 3/6/01 4:22 PM Page 832 highlight_string() function 833 get user urls() function, 515 get writer record() function, 607 getdate() function, 395 getenv() function, 367-368 gethostbyaddr() function, 377 gethostbyname() function, 376-377 getlastmod() function, 452-453 getmxrr() function, 376-378 gettype() function, 36 get writer record() function, 605 get_accounts() function, 634 get_account_list() function, 637-638 get_categories() function, 552 get_category_name() function, 554-555 get_current_user() function, 452 get_extension_funcs() function, 451-452 get_loaded_extensions() function, 451-452 get_magic_quotes_gpc() function, 449 get_magic_quotes_run- time() function, 449 get_post() function, 733-734 get_post_message() function, 737 get_post_title() function, 736-737 Ghostscript PostScript interpreter, 747 Ghostscript Web site, 748 GIF (Graphics Interchange Format), 404 compression, LZW (Lempel Ziv Welch), 404 downloading, Web site, 404 global privileges, 189 global scope, 136 global variables, 136 Gnu Privacy Guard (GPG), 339-347 installing, 339-342 key pairs, 340 testing, 342-347 GNU Privacy Guard Web site, 339 goods (commercial Web sites) adding value to, 276 digital goods, providing, 275-276 taking orders for, 271-275 obstacles to potential customers, 273-275 Google Web site, 787 GPG (Gnu Privacy Guard), 339-347 installing, 339-342 key pairs, 340 testing, 342-347 GRANT command, 188-193, 246 GRANT privilege, 253 GRANT statement, 246, 255 grant table, 247, 250-251 Graphics Interchange Format. See GIF graphing data, 419-428 graphs data, code for drawing, 424-427 line, script for outputting, code, 405 variables, code for drawing, 423 Web sites, 428 green-button.png file, 414 Gregorian calendar, 399 GROUP BY clause, 221-222 grouping data, 220-222 guidelines, code, 463 H h switch (add – to front) (mysql command), 186 handles (object-oriented development), 149 handshaking, 334 hash function, 296 HAVING clause, 222 Header() function, 408-409, 760 header.php, 595 headers generating certificates, 777-778 message headers (Warm Mail application), viewing, 647 script architecture, 663 headlines.php, 596-600 HEAP table, 262 highlighting syntax, 454-455 highlight_file() function, 454 highlight_string() function, 454 40 7842 index 3/6/01 4:22 PM Page 833 host table 834 host table, 247-249 mysql database, 249 HotScripts.com Web site, 805 htaccess files (Apache Web server), basic authentication (HTTP), 316-319 HTML, 745 embedding PHP, 13-14 comments, 16-17 PHP statements, 15-16 PHP tags, 14-15 whitespace, 16 file upload, 353-354 code, 353 files, code to catch, 354-356 formatting, strings, 97 forms file upload, 352 userfile field, 354 online newsletters, 658 HTML forms, 229 processing, 11-13 Bob’s Auto Parts application, 11-13 HTML tags, meta tags, 160 htmlspecialchars() function, 233, 336 htpasswd program (Apache Web server), 318-319 HTTP authentication Web sites, 324 basic authentication, 312-313 401 errors, 317 in PHP, 314-315 with Apache .htaccess files, 316-319 with IIS, 319-321 digest authentication, 313 HTTP (Hypertext Transfer Protocol), opening files, 55 HTTP protocol, 333 handshaking, 334 Secure Sockets Layer (SSL), 334 httpd.conf, 790 HTTPS connections, 388 I IDE (integrated develop- ment environments) Web sites, 469 identifiers, 21 MySQL indentifiers, 199-200 results identifiers, retriev- ing query results (Web databases), 236-237 if statements, 38 IIS (Internet Information Server) basic authentication, 319-321 configuring with Internet Services Manager, 319-321 ImageArc() function, 428 ImageColorAllocate() function, 406 ImageCopyResized() function, 594 ImageCreate() function, 405 ImageCreateFromGIF() function, 406, 415 ImageCreateFromJPEG() function, 406, 415 ImageCreateFromPNG() function, 406, 415 ImageDestroy() function, 410 ImageFill() function, 407 ImageFilledRectangle() function, 425-427 ImageGetTTFBBox() function, 416 ImageGIF() function, 409 ImageLine() function, 426 ImagePNG() function, 409, 415 ImagePNG() functions, 415 ImagePolygon() function, 428 ImageRectangle() func- tion, 427 images base canvas, setting up, 414-415 canvas, creating, 405-406 colors, RGB (red, green, and blue), 406 coordinates, 407 creating, 404-405 with fonts, 410-419 with text, 410-419 drawing with scripts, 405 formats, 403 GIF (Graphics Interchange Format), 404 JPEG (Joint Photographic Experts Group), 403 40 7842 index 3/6/01 4:22 PM Page 834 . story .php, 596 footer .php, 595 header .php, 595 headlines .php, 596 include fns .php, 595 keyword add .php, 596 keyword delete .php, 596 keywords .php, 597 login .php, 596 logo.gif, 597 page .php, 597 publish. 597 publish story .php, 596 publish .php, 596 resize image .php, 596 search form .php, 596 search .php, 596 select fns .php, 595 stories .php, 596 story submit .php, 596 story .php, 596 unpublish story .php, 596 user. 502 delete_bms .php, 501 forgot_form .php, 501 forgot_passwd .php, 501 login .php, 501 logout .php, 501 member .php, 501 output_fns .php, 502 recommend .php, 501 register_form .php, 501 register_new .php, 501 40

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

Xem thêm: Phát triển web với PHP và MySQL - p 86 docx

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN