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

PHP.Execute

Executes the specified php code and returns the text output.

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

Deprecated

This function was deprecated.

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

Release notes

Blog Entries

This function checks for a paid license.

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


PDFKit.isLocked - PHP.ExistsVariable

💬 Ask a question or report a problem