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

echo "Step 1: Starting test...<br>";

// Check if functions.php exists
if (file_exists('includes/functions.php')) {
    echo "Step 2: functions.php found<br>";
} else {
    echo "Step 2: functions.php NOT found<br>";
    exit;
}

// Try to include functions.php
echo "Step 3: Trying to include functions.php...<br>";
require_once('includes/functions.php');
echo "Step 4: functions.php loaded successfully<br>";

// Check if PHPMailer files exist
echo "Step 5: Checking PHPMailer files...<br>";
if (file_exists('PHPMailer/src/Exception.php')) {
    echo "PHPMailer/src/Exception.php found<br>";
} else {
    echo "PHPMailer/src/Exception.php NOT found<br>";
}

if (file_exists('PHPMailer/src/PHPMailer.php')) {
    echo "PHPMailer/src/PHPMailer.php found<br>";
} else {
    echo "PHPMailer/src/PHPMailer.php NOT found<br>";
}

if (file_exists('PHPMailer/src/SMTP.php')) {
    echo "PHPMailer/src/SMTP.php found<br>";
} else {
    echo "PHPMailer/src/SMTP.php NOT found<br>";
}

echo "Step 6: Test complete";
?>