The "fm_" functions are actual PHP functions that we built into our version of PHP. This means you can call these functions from within your PHP code. Take a look in the manual starting on page 30 and you'll find documentation for each function. Also take a look at the Testbed file that's included with the download and you'll find code examples.
Hope that helps. Let me know if you have questions regarding any specific function.
Newbie question fm_ functions
Hello Gerben,
The "fm_" functions are actual PHP functions that we built into our version of PHP. This means you can call these functions from within your PHP code. Take a look in the manual starting on page 30 and you'll find documentation for each function. Also take a look at the Testbed file that's included with the download and you'll find code examples.
Hope that helps. Let me know if you have questions regarding any specific function.
Regards,
Micah
fm_evaluate
Hello Micah, thanks, I found the info in the manual but now this:
I hope it is correct that these functions work with FMP 8.5 (NOT advanced).
--
PHP_Execute (
$expression = "GetField ( \"Administratie::hours\" )";
fm_evaluate($expression);
)
--
Filemaker alert says: "fm_evaluate: function not found"
Thanks, Gerben.
Syntax Error?
I think you have a problem with your syntax. Try the following and it should work:
PHP_Execute ( "$expression = 'GetField ( \"Administratie::Hours\" )';¶echo fm_evaluate($expression);")You can also use the PHP_GetLastCode function as a helpful way to troubleshoot your code and see what was actually executed.
Regards,
Micah