« Back to Product

Documentation

IPS_RunScriptText

 boolean IPS_RunScriptText (string $ScriptText) 

Parameters

ScriptText

String which is called as script.

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

The command starts a script with the content ScriptText. It is not necessary to state PHP tags.

When using __IPS_RunScriptText__, the script is executed in its own context. Thus, it does not have access to the variables of the calling script. Data can only be exchanged via external variables. The command is suited for situations, where a script needs to be executed soon but does not require the context of the calling script. The runtime of the scripts do not change as both scripts are executed simultaneously.

Example

// Prints "Hello World" in the message view
IPS_RunScriptText("echo 'Hello World';");
Any questions?