| Current Path : /home/happyrenas/fun/public/api/ |
Linux webd005.cluster105.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 |
| Current File : /home/happyrenas/fun/public/api/ping.php |
<?php
ini_set("display_errors","1");
ini_set("display_startup_errors","1");
error_reporting(E_ALL);
header('Content-Type: application/json; charset=utf-8');
try {
require_once __DIR__ . '/_bootstrap.php';
echo json_encode(['ok'=>true, 'msg'=>'bootstrap loaded'], JSON_UNESCAPED_UNICODE);
} catch (Throwable $e) {
http_response_code(500);
echo json_encode([
'ok'=>false,
'error'=>$e->getMessage(),
'file'=>$e->getFile(),
'line'=>$e->getLine()
], JSON_UNESCAPED_UNICODE);
}