« Back to Product

Documentation

IPS_RunScriptText

 bool IPS_RunScriptText (string $ScriptText) 

Parameters

ScriptText

String which is called as script.

Returns

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

Description

The function 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 function 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 calling script does not change as both scripts are executed simultaneously.

Example

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