This is an old revision of the document!
uPHP Library functions are functions that are written in uPHP and distributed with the WattmonOS installation. You will need to include the relevant file using include() before calling the function.
Click on the function name for further details:
FUNCTION NAME | PARAMETER(S) | RETURN | DESCRIPTION |
---|---|---|---|
add_cron | int filename, string interval | int | Add a scheduled CRON script |
add_role | int id, string role_name, int role_group, int role_type, int role_show, int role_def, string role_devices | none | Add a system role |
fgets_long | int handle | string line | Read a line without length restriction from an open file |
remove_cron | int filename | int | Remove a scheduled CRON script |