Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
PHP.Execute
Executes the specified php code and returns the text output.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| PHP | 2.9 | Yes | Yes | Yes | Yes | No |
MBS( "PHP.Execute"; phpCode ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| 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
Blog Entries
- MBS FileMaker Plugin, version 8.1pr2
- The Status of our PHP support
- PHP Functions in MBS Filemaker Plugin
Release notes
- Version 8.1
- Changed PHP.Run and PHP.Execute to return better error messages.
Created 18th August 2014, last changed 18th August 2014
PDFKit.isLocked - PHP.ExistsVariable
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins