PHP Constants
Our PHP extension includes a number of PHP constants that make it easy to determine various file paths from within your PHP code. These constants can be used like any other PHP constant.
FM_DESKTOP_PATH
FM_DOCUMENTS_PATH
FM_EXTENSIONS_PATH
FM_FILEMAKER_PATH
FM_PHP_SUPPORT_PATH
FM_PHPX_PATH
FM_PREFERENCES_PATH
FM_TEMPORARY_PATH
Example paths
FM_DESKTOP_PATH: /Users/Username/Desktop/ FM_DOCUMENTS_PATH: /Users/Username/Documents/ FM_EXTENSIONS_PATH: /Users/Username/Library/Application Support/FileMaker/FileMaker Pro Advanced/15.0/Extensions/ FM_FILEMAKER_PATH: /Applications/FileMaker Pro 14 Advanced/ FM_PHP_SUPPORT_PATH: /Users/Username/Library/Application Support/Scodigo/Smartpill/ FM_PHPX_PATH: /Users/Username/Library/Application Support/Scodigo/Smartpill/PHPx/ FM_PREFERENCES_PATH: /Users/Username/Library/Preferences/ FM_TEMPORARY_PATH: /var/folders/2v/tv8bs4bn04q1w0y19wtwqnrr0000gn/T/S10/