<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

echo "Testing PHP error display...\n";

// Test include config
require_once '../config/config.php';
echo "Config loaded successfully!\n";

// Test API Key
if (defined('GEMINI_API_KEY')) {
    echo "GEMINI_API_KEY: " . substr(GEMINI_API_KEY, 0, 10) . "...\n";
} else {
    echo "GEMINI_API_KEY not defined!\n";
}

// Test curl
if (function_exists('curl_init')) {
    echo "CURL is available!\n";
} else {
    echo "CURL is NOT available!\n";
}

echo "All tests passed!\n";
?>