This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
uphp:functions:disk_free_space [2017/05/08 14:20] jeff |
uphp:functions:disk_free_space [2019/03/05 09:21] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
======disk_free_space====== | ======disk_free_space====== | ||
- | < | + | < |
- | Return free space on microSD card | + | Return free space on drive |
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | < | + | |
<span style=" | <span style=" | ||
- | <span style=" | + | <span style=" |
- | </ | + | </ |
- | </ | + | |
====Parameters==== | ====Parameters==== | ||
- | None | + | < |
- | ====Return Value==== | ||
- | KiloBytes (KB) available on the microSD card (Bytes/1024, rounded to an < | + | ====Return Values==== |
+ | |||
+ | Status of the drive, 1 = unmounted and 0 = mounted. | ||
====Example==== | ====Example==== | ||
Line 26: | Line 25: | ||
<code php> | <code php> | ||
<? | <? | ||
- | $df=disk_free_space(); | + | $d1=disk_status(0); |
- | print(" | + | |
+ | | ||
+ | | ||
+ | if ($d2) | ||
+ | print("Flash unmounted" | ||
+ | | ||
?> | ?> | ||
</ | </ | ||
Line 35: | Line 39: | ||
[[disk_total_space()]] - Return total space on microSD card | [[disk_total_space()]] - Return total space on microSD card | ||
- | [[freemem()]] - Return | + | [[get_drive()]] - Return |
- | + | ||
- | [[freestack()]] - Return free stack space | + | |
- | [[nvram_free()]] - Return free NVRAM space | ||