<?php
/**
 * Quick connectivity check — open in browser:
 * http://localhost/hostiva/api/check.php
 */
header('Content-Type: application/json; charset=utf-8');
echo json_encode([
    'ok' => true,
    'php' => PHP_VERSION,
    'message' => 'Apache and PHP are working. Use api/index.php?r=ping next.',
    'time' => date('c'),
], JSON_PRETTY_PRINT);
