[ 'header' => "Content-type: application/json\r\n", 'method' => 'GET', ], ]; $context = stream_context_create($options); $result = file_get_contents($url, false, $context); if ($result === FALSE) { die('Error Fetching data'); } return json_decode($result, true); // Decode JSON as an associative array } ?>
This lists every disk ever scanned by this device.
this link.
"; $ssdData = fetchSSDData(); // Fetch data from the API // Start the table echo '
| Disk ID | Model String | Serial Number | TB Written | Disk Capacity | Disk Flavor | SMART Result |
|---|---|---|---|---|---|---|
| {$id} | {$model} | {$serial} | {$tbw} | {$cap} | {$flavor} | {$smart} |