4 Replies Latest reply on May 20, 2012 4:29 PM by jamest

    FileMaker 12 PHP API vs previous versions

    jamest

      I'm starting learning the FileMaker PHP API, but much of the material around was created around FMS 9 and sometimes 10. I was wondering if there were many changes to the PHP API at all, especially modifications, but also additions? Is it worth going through all the earlier material not?

       

      I believe FM removed the PHP Site Assistant in 12, does this impact development or will I barely/not notice it?

        • 1. Re: FileMaker 12 PHP API vs previous versions
          nickorr

          Jamest,

           

          The API is almost exactly the same as the earlier versions, so you can still use all of the old training materials.

           

          However the back end web functions are quite improved and there can be some significant speed improvements from moving to 12, so it's worth using that if you have the option.

           

          Cheers,

          Nick

          1 of 1 people found this helpful
          • 2. Re: FileMaker 12 PHP API vs previous versions
            Mike_Mitchell

            James -

             

            Ditto on what Nick said about performance. I updated my site to 12 - no changes in code, just converted the database and ran it - and I'm seeing a 3x or 4x increase in response. It's great.

             

            Oh, and if you don't / didn't use the Site Assistant, it won't impact you at all.

             

            Mike

            1 of 1 people found this helpful
            • 3. Re: FileMaker 12 PHP API vs previous versions
              JoelShapiro

              Hi jamest

               

              The only important change to be aware of, that I know about, is that with FMS10 the API added the function "getValueListTwoFields()" to replace the now deprecated FMS9 function "getValueList()".  There are circumstances when the old getValueList will return incorrect results, so you should always use getValueListTwoFields and never user getValueList. 

              Note: Although the function is curiously named "TwoFields", it really is valid for any kind of FM value list.  The syntax that you may see in older training materials for getValueList($valueListName) just needs to be replaced with the new function name: getValueListTwoFields($valueListName).

               

              Also, new in FMS12 is "getContainerDataURL()".  As described in the knowledge base:

              To support progressive download of interactive container field objects in Custom Web Publishing solutions, your PHP code should use the getContainerDataURL() method rather than the getContainerData() method for embedded files, referenced files, and externally stored files.

              http://help.filemaker.com/app/answers/detail/a_id/10248#6

               

              HTH,

              -Joel

               

              ~~~~~~~~~~~~~~~~~~~~~

              Joel Shapiro

              FileMaker Pro

              : database design

              : web development

              http://jsfmp.com

              415-269-5055

              ~~~~~~~~~~~~~~~~~~~~~

              • 4. Re: FileMaker 12 PHP API vs previous versions
                jamest

                Thanks Joel,

                 

                Very helpful. I'll be wary not to get into that pitfall.

                 

                Jamest