| 1 | <?php |
| 2 | //header('Cache-Control: no-cache, must-revalidate'); |
| 3 | //header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); |
| 4 | header('Content-type: application/json'); |
| 5 | |
| 6 | $start = isset($_GET['start']) ? (int)$_GET['start'] : 0; |
| 7 | $count = isset($_GET['count']) ? min((int)$_GET['count'], 2000) : 100; |
| 8 | |
| 9 | $data = array(); |
| 10 | for ( $i = $start; $i < $start+$count; $i++ ) { |
| 11 | $data[] = $i; |
| 12 | } |
| 13 | |
| 14 | echo json_encode($data); |