/dev/null > /home/embedded/library/diskclean.log", $iRet); error_log("Call to DiskSpaceClean.sh returned a \"$iRet\" and the output was \"$sRet\""); $diskSpace = disk_free_space("/home/embedded/library/upload"); error_log("NEW - Free Diskspace for Firmware upload is: ". $diskSpace ); } // Generate a temporary filename on the initial get $fileName = "/tmp/saveRestore-".date("m_d_y-His"); // Calculate the available disk space and create a displayable label $availableDiskSpace = disk_free_space("/") / 1048576.0; ?>