JSON output

This commit is contained in:
Thanakorn S
2026-05-13 16:41:28 +07:00
parent 8cf1d9344c
commit bf3be28f79
3 changed files with 3 additions and 4 deletions
-2
View File
@@ -93,5 +93,3 @@ $pdo1->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
//..................... PDO2 .....................//
$pdo2 = new database($db_type2.':host='.$db_server2.';dbname='.$db_database2.';charset=utf8', $db_user2, $db_pass2);
$pdo2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
?>
-1
View File
@@ -8,4 +8,3 @@ if(true){
$prop['limit'] = 50;
}
?>
+2
View File
@@ -1,5 +1,7 @@
<?php
// app/session.php
ob_start(); // ensure output buffering is on regardless of php.ini — prevents stray output from corrupting JSON API responses
if (session_status() === PHP_SESSION_NONE) {
// Derive cookie path dynamically from the current script location.