Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  

PHP.Execute

Executes the specified php code and returns the text output.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
PHP 2.9 Yes Yes Yes Yes No

MBS( "PHP.Execute"; phpCode )

Parameters

Parameter Description Example value
phpCode the source code of the script you are executing $code

Result

The string returned from the PHP function or error message.

Description

Executes the specified php code and returns the text output.
Same as calling PHP.Run and PHP.GetResultString, but returns the result directly.

Examples

Run test code and get result:

$r = MBS( "PHP.Execute"; "echo 'ok';" )

See also


PDFKit.isLocked   -   PHP.ExistsVariable

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins