From 6eb718c92a52e5dadbaa44ef34727779fdeaef9b Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sat, 23 May 2026 18:37:55 +0300 Subject: [PATCH] Deploy: 2026-05-23 18:37:55 --- backend/api/debug-hex.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 backend/api/debug-hex.php diff --git a/backend/api/debug-hex.php b/backend/api/debug-hex.php new file mode 100644 index 0000000..f1cf07b --- /dev/null +++ b/backend/api/debug-hex.php @@ -0,0 +1,35 @@ += 32 && $c <= 126) ? $bytes[$i] : '.'; + } + + $results[$file] = [ + 'size' => filesize($path), + 'first_16_hex' => implode(' ', $hex), + 'first_16_ascii' => $ascii + ]; + } else { + $results[$file] = 'File not found'; + } +} + +echo json_encode($results, JSON_PRETTY_PRINT); +?>