Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Declares the variables in inside of PHP.

Component Version macOS Windows Linux Server iOS SDK
PHP 2.9 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ❌ No


This function was deprecated.

MBS( "PHP.SetVariable"; VariableName; TextValue )   More


Parameter Description Example
VariableName the name of the variable
TextValue the value of the variable


Returns OK on success.


Declares the variables in inside of PHP.
This is one way to get data into php from FileMaker.


Set varibale and output it:

Set Variable [ $result ; Value: MBS( "PHP.SetVariable"; "c"; 5 ) ]
Set Variable [ $result ; Value: MBS("PHP.Run"; "echo $c;") ]
Set Field [ Simple_php::result ; MBS("PHP.GetResultString") ]

See also

Blog Entries

This function checks for a paid license.

Created 18th August 2014, last changed 23th January 2023

PHP.Run - PHP.ShutDown

💬 Ask a question or report a problem