Requires: IP-Symcon >= 3.1
boolean IPS_SetScriptContent (integer $ScriptID, string $Content)
ScriptID | ID of the script |
Content | Content, including PHP tags ( and ?>) |
If the command succeeds, it returns TRUE, otherwise FALSE. |
This function sets the content of the script with the ID ScriptID. The function replaces the content of the script file.
This function should be handled with care as the previous content is overwritten without a warning
$ScriptID = IPS_CreateScript(0); IPS_SetName($ScriptID, "My Script"); IPS_SetScriptContent($ScriptID, "<? echo 'Test!'; ?>");