This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
uphp:functions:disk_free_space [2019/03/05 09:21] admin |
uphp:functions:disk_free_space [2019/03/05 09:27] admin |
||
---|---|---|---|
Line 3: | Line 3: | ||
< | < | ||
- | Return | + | Return |
====Description==== | ====Description==== | ||
<well size=" | <well size=" | ||
- | <span style=" | ||
<span style=" | <span style=" | ||
</ | </ | ||
Line 15: | Line 14: | ||
< | < | ||
- | |||
- | |||
====Return Values==== | ====Return Values==== | ||
- | Status of the drive, 1 = unmounted and 0 = mounted. | + | KiloBytes (KB) total for the microSD card (Bytes/1024, rounded to an < |
====Example==== | ====Example==== | ||
Line 25: | Line 22: | ||
<code php> | <code php> | ||
<? | <? | ||
- | $d1=disk_status(0); | + | $dt=disk_total_space(0); |
- | | + | print(" |
- | | + | |
- | | + | |
- | if ($d2) | + | |
- | print("Flash unmounted" | + | |
- | | + | |
?> | ?> | ||
</ | </ | ||
Line 37: | Line 29: | ||
====See Also==== | ====See Also==== | ||
- | [[disk_total_space()]] - Return | + | [[disk_total_space()]] - Return |
+ | |||
+ | [[freemem()]] - Return free memory space | ||
- | [[get_drive()]] - Return | + | [[freestack()]] - Return |
+ | [[nvram_free()]] - Return the number of bytes available in <tooltip title=" | ||