Current directory: /home/klas4s23/domains/585455.klas4s23.mid-ica.nl/public_html/Gastenboek/uploads
<?php
/**
* Debug Endpoint - Test de check_answer functionaliteit
*/
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');
// Test 1: Check if we can read the request
echo json_encode([
'request_method' => $_SERVER['REQUEST_METHOD'],
'content_type' => $_SERVER['CONTENT_TYPE'] ?? 'not set',
'raw_input' => file_get_contents('php://input'),
'server_info' => [
'php_version' => PHP_VERSION,
'mysql_available' => extension_loaded('pdo_mysql')
]
]);