diff --git a/db/dns.sqlite b/db/dns.sqlite deleted file mode 100644 index e69de29..0000000 diff --git a/public/api.php b/public/api.php index 8645759..e3edfc2 100644 --- a/public/api.php +++ b/public/api.php @@ -4,3 +4,6 @@ $db = new PDO("sqlite:../db/dns.sqlite"); $topDomains = $db->query("SELECT domain, COUNT(*) as hits FROM logs GROUP BY domain ORDER BY hits DESC LIMIT 10")->fetchAll(PDO::FETCH_ASSOC); echo json_encode($topDomains); +ini_set('display_errors', 1); +ini_set('display_startup_errors', 1); +error_reporting(E_ALL); \ No newline at end of file