publishing with fedora and rhel

web publishing with php and file maker 9 sep 2007

web publishing with php and file maker 9 sep 2007

... Jonathan Stark Web Publishing with PHP and FileMaker ® 800 East 96th Street, Indianapolis, Indiana 46240 USA Web Publishing with PHP and FileMaker® Copyright © 2008 by Sams Publishing All rights ... title and author as well as your name and phone or email address I will carefully review your comments and share them with the author and editors who worked on the book Email: feedback@samspublishing.com ... variety of ways, including creating, editing, and deleting Introduction records; displaying and uploading images; working with related data and portals; and re-creating a FileMaker layout on the...

Ngày tải lên: 05/04/2014, 20:01

263 496 0
Web Publishing with PHP and FileMaker 9- P8 docx

Web Publishing with PHP and FileMaker 9- P8 docx

... been cut and pasted into this page In this case, the engineers at FileMaker, Inc have written a page called FileMaker.php and we want to include their work in our page without having to cut and paste ... newFindAllCommand() method, I was a little peeved that it was a two-step process: I had to create it on one line, and then execute it on another I wondered why it didn’t just execute right away and give ... Listing 6.2 is exactly like 6.1 with the following exceptions: I have converted the table header cells into sort links I modified the PHP to check for and handle sorting Let’s look at the PHP...

Ngày tải lên: 03/07/2014, 06:20

15 349 0
Web Publishing with PHP and FileMaker 9- P9 ppt

Web Publishing with PHP and FileMaker 9- P9 ppt

... the newAddCommand() method of the FileMaker connection object The newAddCommand() method requires that you give it a layout name—Product, in this case $request = $fm->newAddCommand(‘Product’); ... getRecordId() method of the FileMaker connection object Summary 113 And, in terms of pure PHP, you learned: How to use the and operator in an if statement How to use the define construct to ... FM_HOST, FM_USER, FM_PASS); if(isset($_GET[‘search’]) and $_GET[‘search’] != ‘’) { $search = $_GET[‘search’]; $request = $fm->newFindCommand(‘Product’); $request->addFindCriterion(‘Name’, $search);...

Ngày tải lên: 03/07/2014, 06:20

15 252 0
Web Publishing with PHP and FileMaker 9- P10 docx

Web Publishing with PHP and FileMaker 9- P10 docx

... far with FileMaker web publishing FileMaker connection object getRecordById() newAddCommand() newEditCommand() newFindAllCommand() newFindCommand() Find All Command object addSortRule() ... set and equal to “Save”: if (isset($_POST[‘action’]) and $_POST[‘action’] == ‘Save’) { Use the newEditCommand() method of the FileMaker connection object to create a new Edit Command object and ... newEditCommand() takes a layout name and record ID as its parameters: $edit = $fm->newEditCommand(‘Product’, $_REQUEST[‘recid’]); Summary 135 Use the setField() method of the Edit Command object...

Ngày tải lên: 03/07/2014, 06:20

15 275 0
Web Publishing with PHP and FileMaker 9- P11 doc

Web Publishing with PHP and FileMaker 9- P11 doc

... the portal records and creating table rows Notice that when you use the getField() method with related records, you have to preface the field name with the table occurrence name and two colons foreach( ... 148 CHAPTER Working with Related Data (Portals) Here’s the blow-by-blow commentary: As usual, the page starts off with the opening PHP tag and the definition of the connection ... you can see how the portal looks with data in it: Make note of the ID of the Product record you are on In my version of the file, I am on Skeeter’s Egg Beaters and the ID value is (see Figure...

Ngày tải lên: 03/07/2014, 06:20

15 184 0
Web Publishing with PHP and FileMaker 9- P12 pps

Web Publishing with PHP and FileMaker 9- P12 pps

... the foreach loop by compiling the open HTML for the portal form and table I get the related set, open the form and table tags, and load the header HTML $portal_records = $record->getRelatedSet(‘Inventory’); ... if (isset($_POST[‘action’]) and $_POST[‘action’] == ‘Save’) { Note that, here, we are now pointing the first parameter of the newEditCommand() at the Inventory layout and the setField() methods ... The concept here is almost identical to the edit and delete links that we covered in Chapter 7, “Altering FileMaker Data.” There, we added edit and delete links to the product list page Here,...

Ngày tải lên: 03/07/2014, 06:20

15 229 0
Web Publishing with PHP and FileMaker 9- P13 pot

Web Publishing with PHP and FileMaker 9- P13 pot

... have a page with 25 images on it, the server gets hit 26 times—once for the page content itself and once each for the 25 images The initial page request is getting filtered through PHP and before ... hopelessly confused between what is the real URL, and what is data in the query string Here is the get_image.php code with comments First, we start off with our connection information:

Ngày tải lên: 03/07/2014, 06:20

15 286 0
Web Publishing with PHP and FileMaker 9- P14 docx

Web Publishing with PHP and FileMaker 9- P14 docx

... both FileMaker users and web users can upload images to the web server with the same code Summary These two image-handling options—embedding images in FileMaker container fields and storing only ... database—should give you enough power and flexibility to manage whatever file management issues you might encounter As with all form submissions, there are security and error-handling issues to consider, ... Concerns,” and C, “Error Handling and Prevention” in Part IV before rolling out your solution CHAPTER 10 Repurposing a FileMaker Layout on the Web Introduction “Give a man a fish and you feed...

Ngày tải lên: 03/07/2014, 06:20

15 278 0
Web Publishing with PHP and FileMaker 9- P15 ppt

Web Publishing with PHP and FileMaker 9- P15 ppt

... through the fields and draw the header row for the portal table This is basically the same as all previous header loops, with one exception Related fields come in prefaced with their TO name ... working with the portal as an object found on the layout The portal that we are working with doesn’t know which parent record we are on This is a really tough concept for people to understand at ... getRelatedSet() method returns an error I’m going to discuss error handling in more detail in Appendix C, “Error Handling and Prevention,” but here’s a preview For now, just let this line soak...

Ngày tải lên: 03/07/2014, 06:20

15 317 0
Web Publishing with PHP and FileMaker 9- P16 pptx

Web Publishing with PHP and FileMaker 9- P16 pptx

... www.briandunning.com, www.briandunning.com/error-codes/, or the FileMaker Help system PHP Errors Most PHP errors are obvious For example, if you forget to end a line with a semicolon and attempt ... 228 Error Handling and Prevention NOTE If you are on a Mac, you should be coding your PHP in TextMate, which—among thousands of other awesome things—allows you to validate your PHP code with a single ... this script fails?” Is the script just reading and outputting data? Or could it potentially delete all of your records? 226 APPENDIX C Error Handling and Prevention There are two main types of error...

Ngày tải lên: 03/07/2014, 06:20

15 324 0
Web Publishing with PHP and FileMaker 9- P17 pps

Web Publishing with PHP and FileMaker 9- P17 pps

... FileMaker_Command_CompoundFind FileMaker_Command_Delete FileMaker_Command_Duplicate FileMaker_Command_Edit FileMaker_Command_Find FileMaker_Command_FindAny FileMaker_Command_FindRequest ... FileMaker newFindAllCommand(LayoutName) FileMaker_Command_FindAll FileMaker newFindAnyCommand(LayoutName) FileMaker_Command_FindAny FileMaker newFindCommand(LayoutName) FileMaker_Command_Find FileMaker ... FileMaker_Command_Delete FileMaker newDuplicateCommand(LayoutName, RecordId) FileMaker_Command_Duplicate FileMaker newEditCommand(LayoutName, RecordId[, FieldValues]) FileMaker_Command_Edit FileMaker...

Ngày tải lên: 03/07/2014, 06:20

15 209 0
Web Publishing with PHP and FileMaker 9- P18 docx

Web Publishing with PHP and FileMaker 9- P18 docx

... 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, ... newDuplicateCommand( ) method, 234 newEditCommand( ) method, 134, 163, 185, 234 M newFindAllCommand( ) method, 98, 234 machine configuration options (FileMaker Server), 68-69 newFindCommand( ) method, ... 36 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...

Ngày tải lên: 03/07/2014, 06:20

8 226 0
w