Brian Dunning's FileMaker Custom Functions

PHP ( param )

Use standard PHP in Filemaker calculations

  Average rating: 3.8 (47 votes) Log in to vote

Bruce Robertson   Bruce Robertson - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
PHP("include(documemnts/myfile.txt")
  Sample output:
Contents of text document.

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This function requires the free Abstrakt shell plugin and a version of PHP which allows command line input. You can then pass standard PHP instructions to the custom function. The instructions will be executed and the result will be returned as text.

For command line processing, the beginning and closing tags ("<?php" and "?>") need to be stripped off.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: