<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
header("Content-Type: text/plain");

echo "Starting test...\n";

if (file_exists("../config.php")) {
    echo "✅ Found config.php\n";
    require("../config.php");
} else {
    echo "❌ config.php missing\n";
}

if (file_exists("session.php")) {
    echo "✅ Found session.php (in accounts folder)\n";
    require("session.php");
} elseif (file_exists("../session.php")) {
    echo "✅ Found session.php (in parent folder)\n";
    require("../session.php");
} else {
    echo "❌ session.php missing\n";
}

echo "✅ PHP ran successfully up to the end.\n";
