User Tools

Site Tools


uphp:functions:nvram_set

This is an old revision of the document!


nvram_set

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Set a value in NVRAM for a particular key. If the key already exists, it will overwrite the value with the new one.

Description

int nvram_set ( string $key , string $value )

Parameter

$key: String variable name to set associated value for

<b><span style=“color:blue”>$value<span style=“color:black”></b></html>: String value to set. If you wish to set a numeric value, first convert into a string using strval() or number_format()

Return Values

int: returns 1 on success and 0 on failure

Example

<?
  $res=nvram_set("myvariable","Test");
  if (!$res) {
    print("Error saving NVRAM key/value");
  } 
?>

See Also

nvram_get() - Get a value in NVRAM</html>

uphp/functions/nvram_set.1494494783.txt.gz · Last modified: 2021/09/13 05:56 (external edit)