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

PHP.SetVariable

Declares the variables in inside of PHP.

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

Deprecated

This function was deprecated.

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

Parameters

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

Result

Returns OK on success.

Description

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

Examples

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