Web Publishing with PHP and FileMaker 9- P18

Chia sẻ: Cong Thanh | Ngày: | Loại File: PDF | Số trang:8

0
42
lượt xem
5
download

Web Publishing with PHP and FileMaker 9- P18

Mô tả tài liệu
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

Web Publishing with PHP and FileMaker 9- P18:On the other hand, it would drive me nuts if you bought this book only to discover that it didn’t address your needs. In the spirit of customer satisfaction, please read the following introduction to get a sense of where I’m coming from, and whether you might get some good use out of this book.

Chủ đề:
Lưu

Nội dung Text: Web Publishing with PHP and FileMaker 9- P18

  1. layouts 245 , 25-26 tag, 28-29 , 26 inserting , 25 data into container fields, 170-171 , 19-20 Web Viewers, 177-179 , 25 installing whitespace, 23 FileMaker Server, 69-70 in XSS (cross-site scripting attacks), testing installation, 77 219-221 PHP testing installation, 32 , .html file extension, 9 Instant Web Publishing (IWP), 92-93 tag, 19 in_array( ) function, 218 HTML template method, 100 IP addresses. See also URLs htmlentities( ) function, 221 domain names compared, 9 htmlspecialchars( ) function, 220 linking to domain names, 11 html_entity_decode( ) function, 221 isAutoEntered( ) method, 237 HTTP, as stateless protocol, 107 isError( ) method, 234 hyperlinks, anchor tags for, 22 isGlobal( ) method, 237 Hypertext Markup Language. See HTML isset( ) language construct, 102 isValidationError( ) method, 236 iterative constructs in PHP, 41-44 I–J IWP (Instant Web Publishing), 92-93 jnlp file, launching, 71 ID fields, setting up, 55-58 if statement, 35-36 images embedding in container fields, 167-175 K–L tag, 20-21 logins for, avoiding, 173-174 launching storing URLs in text fields, 168, 175-188 jnlp file, 71 uploading to web servers, 178-188 PHP Site Assistant, 80-81 tag, 20-21 Layout Group page (PHP Site Assistant), 82-83 include statement, 97 Layout mode, 60 incoming data, filtering, 217-221 layout objects, portals as, 207 initializing variables, 119 layouts ini_set( ) command, 224 creating, 57, 59 inline elements, 23 fields on, minimizing, 213-214 How can we make this index more useful? Email us at indexes@samspublishing.com
  2. 246 layouts portals Master machines, 69 altering related records in, 156-161 maximum file size for uploaded files, 218 creating, 141-144 maximum length for incoming data, 218 creating related records in, 150-155 methods viewing data, 146-150 OOP 97-98 , result layouts, specifying, 214 prototypes, reading, 231-232 stacking order of fields, setting, 192 return values, 232-233 status area, 59 middleware. See scripts updating websites via, 189-190 minimizing Detail view example, 202-209 database requests, 215 List view example, 190-202 layout fields, 213-214 line breaks, HTML tags, 23 move_uploaded_file( ) function, 184 linking domain names and IP addresses, 11 moving between records, 59 links, creating drill down links, 107-109 multidimensional arrays in PHP, 39-41 List view example (updating websites via lay- outs), 190-202 listDatabases( ) method, 234 listFields( ) method, 237-238 N listLayouts( ) method, 234 name attribute ( tag), 28 listRelatedSets( ) method, 237 naming conventions, PHP variables, 34 listScript( ) method, 234 nested arrays in PHP, 39-41 listValueLists( ) method, 237 nesting HTML elements, 19 locking records, error handling and, 229-230 newAddCommand( ) method, 121, 234 logical errors, handling, 228 newCompoundFindCommand( ) method, 234 logins for images, avoiding, 173-174 newDeleteCommand( ) method, 234 looping in PHP, 41-44 newDuplicateCommand( ) method, 234 newEditCommand( ) method, 134, 163, 185, 234 newFindAllCommand( ) method, 98, 234 M newFindAnyCommand( ) method, 234 machine configuration options (FileMaker newFindCommand( ) method, 234 Server), 68-69 newFindRequest( ) method, 234 Manage Accounts & Privileges dialog box, newPerformScriptCommand( ) method, 234 61-64 newRelatedRecord( ) method, 153, 238 Manage Database dialog box, 50, 55, 57 non-equality operator (!=), PHP conditional structures, 36
  3. primary keys 247 Number field type, 52 comments, 33 number fields, finds on, 61 comparison operators, 36 numErrors( ) method, 236 conditional structures, 35-36 connection privileges, granting, 63 defined, 31 downloading, 31-32 O errors, handling, 227-228 objects (OOP), 97-98 form handling, 44-46 ODBC (Open Database Connectivity), 93 looping in, 41-44 OOP (object-oriented programming), 97 string manipulation, 34-35 opening PHP files, troubleshooting, 32 syntax, 32-33 opening tags, 19, 33 testing installation, 32 optimizing performance. See performance variables, 33-34 tuning for XML transformations, 94 or operator, 102 .php file extension, 15 Output Settings page (PHP Site PHP Hypertext Preprocessor. See PHP Assistant), 83 PHP Site Assistant, 80 launching, 80-81 search site, building, 81-86 P php.ini configuration file, 224 PHPSA. See PHP Site Assistant tag, 22 plus sign (+), in hrefs, 102 page names, in URLs, 13 Portal Setup dialog box, 142-143 pages, creating drill down pages, 110-112 portals paragraphs, HTML tags, 22 altering related records in, 156-161 passwords for Admin account, changing, 62 creating, 141-144 performance tuning creating related records in, 150-155 minimizing database requests, 215 as layout objects, 207 minimizing layout fields, 213-214 viewing data, 146-150 specifying result layouts, 214 POST array, 119-120 period (.), PHP concatenation operator, 34 GET array versus, 126-127 PHP, 15 POST method, 45 arrays, 36-38 Preview mode, 60 associative arrays, 38-39 primary keys looping through, 41-44 foreign keys and, 139 multidimensional arrays, 39, 41 ID fields, setting up, 55-58 How can we make this index more useful? Email us at indexes@samspublishing.com
  4. 248 privilege sets, fmapp extended privilege privilege sets, fmapp extended privilege, 75 retrieving all, 95-100 privileges (FileMaker), 61-64 sorting, 100-103 protocols, in URLs, 13 reference, inserting data as, 170 prototypes, reading, 231-232 related records. See also related tables publishing web pages, steps for, 8-12 adding, 144-146 altering in portals, 156-161 creating, 150-155 deleting, 164-166 Q–R editing, 161-164 query strings, 29 related tables question mark (?), 29 adding to databases, 138-139 portals read operations, 95 creating, 141-144 drill down links, creating, 107-109 viewing, 146-150 drill down pages, creating, 110-112 related records records adding, 144-146 finding, 103-107 altering in portals, 156-161 retrieving all, 95-100 creating, 150-155 sorting, 100-103 deleting, 164-166 Read-Only Access privilege set, 63 editing, 161-164 Record List Page (PHP Site Assistant), 83-84 relationships, creating, 139-141 record locking, error handling and, 229-230 relationships, creating, 139-141 records, 49 relative paths, 21-22 creating, 59, 115-121 renaming tables, 51 deleting, 59, 121-127 renting web servers, 67 drill down links, creating, 107-109 REQUEST array, 125 drill down pages, creating, 110-112 result layouts, specifying, 214 editing, 59, 127-135 retrieving all records, 95-100 finding, 59-61, 103-107 return values for methods, 232-233 moving between, 59 running scripts, 76 related records adding, 144-146 altering in portals, 156-161 creating, 150-155 deleting, 164-166 editing, 161-164
  5. tables 249 S Single Machine configuration, 68 single quotes (‘ ’), PHP string scheduling automated tasks, 75 manipulation, 34 scripts, 14-15. See also PHP Site Profile page (PHP Site Assistant), 82 running, 76 smart web pages, 14-15 Search Page (PHP Site Assistant), 83-84 sorting records, 100-103 search site, building with PHP Site Assistant, SQL injection, 221 81-86 square brackets ([ ]), PHP array operator, 36 searches. See find requests stacking order of fields, setting, 192 security, 217 stateless protocol, HTTP as, 107 connection information, 221-223 static web publishing, 91-92 error handling, 223-224 status area, in FileMaker layouts, 59 FileMaker accounts and privileges, 61-64 storing filtering incoming data, 217-221 connection information, 221-223 self-closing tags, 20 image URLs in text fields, 168, 175-188 semicolons (;), in PHP, 33 string manipulation, in PHP, 34-35 server-side processing. See scripts strip_tag( ) function, 221 servers. See FileMaker Server; web servers strlen( ) function, 218 setField( ) method, 121, 135, 153, 163, 185, strtotime function, 198 235, 238 substr( ) function, 219 setFieldFromTimestamp( ) method, 235, 238 syntax (PHP), 32-33 setLogger( ) method, 234 setLogicalOperator( ) method, 197, 236 setModificationId( ) method, 235 setOmit( ) method, 236 T setPreCommandScript( ) method, 235 Table Occurrences (TOs), 139 setPreSortScript( ) method, 235 tag, 25-26 setProperty( ) method, 234 tables, 49 setRange( ) method, 235-236 fields, 49 setRecordClass( ) method, 235 Auto-enter options, setting, 53-55 setRecordId( ) method, 235 creating, 51-53 setRelatedSetsFilter( ) method, 214 ID fields, setting up, 55-58 setRelatedSetsFilters( ) method, 235-236 on layouts, minimizing, 213-214 setResultLayout( ) method, 235 stacking order, setting, 192 setScript( ) method, 235 table fields versus layout fields, 58 How can we make this index more useful? Email us at indexes@samspublishing.com
  6. 250 tables layouts creating relationships, 139-141 altering related records in portals, viewing portals, 146-150 156-161 renaming, 51 creating, 57, 59 tags (HTML) creating portals, 141-144 , 22 creating related records in portals, , 20 150-155 , 23 fields on, minimizing, 213-214 defined, 9 result layouts, specifying, 214 , 28-29 stacking order of fields, setting, 192 , 21 status area, 59 , 20 updating websites via, 189-209 , 21 viewing data in portals, 146-150 , 19 records, 49 , 20-21 adding related records, 144-146 , 28-29 altering related records in portals, 156-161 overview of, 18-29 creating, 59, 115-121 , 22 creating related records, 150-155 , 25-26 deleting, 59, 121-127 , 26 deleting related records, 164-166 , 25 drill down links, creating, 107-109 , 19-20 drill down pages, creating, 110-112 , 25 editing, 59, 127-135 tag, 26 editing related records, 161-164 templates, HTML template method, 100 finding, 59-61, 103-107 testing moving between, 59 FileMaker Server installation, 77 retrieving all, 95-100 PHP installation, 32 sorting, 100-103 Text field type, 52 related tables text fields adding related records, 144-146 finds on, 60 adding to databases, 138-139 storing image URLs in, 168, 175-188 altering related records in portals, TextMate, 228 156-161 tag, 25 creating portals, 141-144 Theme page (PHP Site Assistant), 83 creating related records, 150-155 Three Machines configuration, 68
  7. Web Publishing Core, error logs 251 time field type, checking for, 198 V Timestamp field type, 53 checking for, 199 validate( ) method, 235-238 tag, 19-20 validating uploaded files, 218-219 TOs (Table Occurrences), 139 value attribute ( tag), 29 tag, 25 variables troubleshooting opening PHP files, 32 initializing, 119 tuning. See performance tuning in PHP 33-34 , Two Machines (Alternative) configuration, 68 viewing Two Machines configuration, 68 FileMaker data, 95 type attribute ( tag), 28 creating drill down links, 107-109 creating drill down pages, 110-112 finding records, 103-107 retrieving all records, 95-100 U sorting records, 100-103 uniform resource locators. See URLs portal data, 146-150 updating file options, 65 websites via layouts, 189-190 W–Z Detail view example, 202-209 List view example, 190-202 web addresses. See URLs uploaded data, filtering, 217-221 web pages. See also HTML, documents uploading defined, 7 databases, 77-80 dynamic web pages, 14-15 HTML documents to web servers, 12 publishing, steps for, 8-12 images to web servers, 178, 180-188 web publishing URL fields, adding to databases, 176 defined, 7-8 urlencode( ) function, 174 methods for URLs (uniform resource locators) Extensible Markup Language (XML), 93-94 explained, 12-13 Instant Web Publishing (IWP), 92-93 image URLs, storing in text fields, 168, 175-188 Open Database Connectivity (ODBC), 93 query strings, 29 static web publishing, 91-92 Web Publishing Core, error logs, 229 How can we make this index more useful? Email us at indexes@samspublishing.com
  8. 252 Web Publishing Engine (WPE) Web Publishing Engine (WPE), 68 error logs, 229 Web Root Directory, 12 storing connection information, 221-223 Web Server, 68 web server processes, defined, 11 web servers defined, 8 error logs, 229 obtaining, 10-11 renting, 67 uploading HTML documents to, 12 uploading images to, 178-188 Web Viewer Setup dialog box, 187 Web Viewers, inserting, 177-179 website backends. See databases websites, updating via layouts, 189-190 Detail view example, 202-209 List view example, 190-202 whitelists, 218 whitespace, in HTML, 23 Worker machines, 69 WPC (Web Publishing Core), error logs, 229 WPE (Web Publishing Engine), 68 error logs, 229 write operations, 115 creating records, 115-121 deleting records, 121-127, 164-166 editing records, 127-135, 161-164 XML (Extensible Markup Language), 93-94 XSLT (Extensible Stylesheet Language Transformations), 94 XSS (cross-site scripting attacks), 219-221
Đồng bộ tài khoản