first commit

This commit is contained in:
2026-04-02 15:13:15 +05:30
commit 24b759888a
6 changed files with 251 additions and 0 deletions

21
app/read.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
$file = 'data.csv';
$data = [];
if (file_exists($file)) {
$handle = fopen($file, 'r');
while (($row = fgetcsv($handle)) !== false) {
$data[] = [
"number" => $row[0]
];
}
fclose($handle);
}
header('Content-Type: application/json');
echo json_encode($data);
?>