SmartPill PHP Edition Changelog


Back to SmartPill PHP Edition


  • - SmartPill PHP Edition 2.0.1 - 11th August 2009
    • Updated PHP to version 5.2.9.
    • Updated CURL to version 7.19.4.
    • Updated SSH2 to version 1.1.
    • New PHP constant FM_FILEMAKER_PATH returns the path to the folder of the currently running copy of FileMaker.
    • Fixes:
      • Fixed an issue where the “License.txt” file could not be properly read when the file was saved using Unix (LF) line breaks.
      • Fixed an issue on Mac when running via FileMaker Server where some of the path constants would return “%20” instead of spaces in the returned path.
      • Fixed an issue where the path constants for the documents, preferences and temporary paths would return different values from those returned by FileMaker’s Get function.
      • Fixed an issue where two consecutive calls to fm_evaluate would cause a crash. This only occurred when the calculation being evaluated was a call back to the plug-in. The plug-in would return the expected 200 error for the first call but would then crash. This also fixed an issue when using fm_sql_execute to insert records that have one or more fields with auto-enter calcs that call the plug-in. In this case, inserting a single record would work fine but inserting a second record would then crash.
      • Fixed an issue on Windows where fm_select_folder would not display mapped drives.
      • Fixed an issue on Windows where regex shorthand character classes (\d, \D, \s, \S, \w, \W) were not recognized by PCRE functions.
      • Fixed an issue where PHP_LoadFunctionsFromURL would crash FileMaker if called when no internet connection is present.
  • + SmartPill PHP Edition 2.0
    • New PHP_LoadFunctions function allows you to load your own plug-in functions (or functions supplied by Scodigo or other developers).
    • New PHP_LoadFunctionsFromURL is just like PHP_LoadFunctions except it allows you to load functions from an HTTP server. This allows for centralized distribution and management of functions.
    • New PHP_UnloadFunctions allows you to unload all functions that have been loaded.
    • New PHP_GetLastCode function returns the PHP code that was last executed (very helpful for development and troubleshooting).
    • New PHP_VersionAutoUpdate function makes it easier to determine if the plug- in needs to be updated. The function conforms to a standard naming and version numbering convention agreed upon by a group of plug-in developers (in hopes to make FileMaker Server’s AutoUpdate function easier to use).
    • New fm_select_file, fm_select_folder and fm_save_file functions allow you to prompt the user for file and folder locations using standard OS dialogs.
    • New fm_new_progress_bar, fm_close_progress_bar, fm_update_progress_bar, fm_progress_bar_position, fm_progress_bar_timeout, fm_progress_bar_control functions allow you to display progress bars.
    • New fm_get_parameter function allows you to read the parameters sent by loaded functions.
    • New fm_set_container_file_name function can be used with the PHP_ExecuteToContainer function to set the name of the file from within your PHP code instead of having to send it as a parameter.
    • New PHP constants now included to make it easy to determine various file paths from within your PHP code:
      • FM_DESKTOP_PATH
      • FM_DOCUMENTS_PATH
      • FM_EXTENSIONS_PATH
      • FM_PHP_SUPPORT_PATH
      • FM_PHPX_PATH
      • FM_PREFERENCES_PATH
      • FM_TEMPORARY_PATH
    • New FileMaker Extension Errors:
      • 900 Error number must be greater than or equal to 1000 901 Script triggering is disabled
      • 902 Progress bars are disabled
      • 903 Progress bar already exists
      • 904 Progress bar doesn’t exist
    • SSH2 now included.
    • LDAPS (secure LDAP) now included.
    • ID3 now included.
    • The fileName parameter in PHP_ExecuteToContainer now supports Unicode.
    • New error to explicitly determine that a PHP parse error occurred: 202 PHP parse error.
    • fm_perform_script corrected to be of type mixed (returns NULL when script triggering is disabled).
    • PHP Support and PHPx folders are now created within the FileMaker Extensions folder when the plug-in starts up (assuming they don’t already exist).
    • Existing license holders will need to purchase an upgrade for this version (unless your license was purchased on July 14, 2008 or later).