« Back to Product

Documentation

IPS_CreateScript

 int IPS_CreateScript (int $SkriptType) 

Parameters

SkriptType
Value Description
0 generates a PHP script
1 generates a Flow Script
2 generates a IPSWorkflow

Returns

ID of the newly created script

Description

This function creates a script from the type ScriptType.

The function returns an ID that can help to uniquely identify the generated script. The function automatically generates a corresponding text file named ScriptID.ips.php, e.g., "43954.ips.php". It is possible to use another file with the function IPS_SetScriptFile. In this case, it is recommended to delete the previous script file to avoid unnecessary script files.

Example

$ScriptID = IPS_CreateScript(0);
echo"The Script ID is: ". $ScriptID;
Any questions?