<?php
header('Content-Type: application/json');

// Buscar la ruta real del config.php en el servidor
$possible_paths = [
    __DIR__ . '/config.php',
    __DIR__ . '/../config.php',
    __DIR__ . '/../../config.php',
    __DIR__ . '/../app-api/config.php',
    __DIR__ . '/../../app-api/config.php',
    '/home/mikes5/public_html/app-api/config.php',
    '/home/mikes5/public_html/config.php',
];

$results = [];
foreach ($possible_paths as $path) {
    $results[$path] = file_exists($path) ? 'EXISTS' : 'not found';
}

echo json_encode([
    'current_dir' => __DIR__,
    'paths' => $results
]);
