This shows you the differences between two versions of the page.
— |
uphp:functions:sys_set [2024/07/16 03:41] (current) admin created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======sys_set====== | ||
+ | |||
+ | < | ||
+ | |||
+ | Set a system parameter | ||
+ | |||
+ | ====Description==== | ||
+ | |||
+ | <well size=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | </ | ||
+ | |||
+ | This function will set an internal parameter | ||
+ | |||
+ | ====Parameters==== | ||
+ | |||
+ | < | ||
+ | ^ Parameter | ||
+ | | force_log | ||
+ | | FLASH_WP | ||
+ | ====Note==== | ||
+ | |||
+ | < | ||
+ | |||
+ | ====Return Values==== | ||
+ | |||
+ | |||
+ | ====Examples==== | ||
+ | |||
+ | <code php> | ||
+ | < | ||
+ | | ||
+ | // this will fail on the flash drive as it is locked by default at boot | ||
+ | | ||
+ | ini_set(" | ||
+ | | ||
+ | // unlock flash | ||
+ | sys_set(" | ||
+ | | ||
+ | // this will succeed | ||
+ | ini_set(" | ||
+ | | ||
+ | // re-lock | ||
+ | sys_set(" | ||
+ | ?></ | ||
+ | </ | ||
+ | |||