[ '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 } ?>
| Disk ID: | {$ssd['id']} |
| Model String: | {$ssd['model']} |
| Serial Number: | {$ssd['serial']} |
| TB Written: | {$ssd['TBW']} |
| Disk Capacity: | {$ssd['capacity']} |
| Disk Flavor: | {$ssd['flavor']} |
| SMART Result: | {$ssd['smart']} |