// this will fail on the flash drive as it is locked by default at boot
ini_set("1:/config/myinifile.ini","config","value",1);
// unlock flash
sys_set("FLASH_WP",0);
// this will succeed
ini_set("1:/config/myinifile.ini","config","value",1);
// re-lock
sys_set("FLASH_WP",1);
?>