<?php
// test.php - Place this in your root directory to test
echo "Testing includes...<br>";

// Check if functions.php is already loaded
if (function_exists('redirect')) {
    echo "redirect() function already exists<br>";
} else {
    echo "redirect() function not defined yet<br>";
}

// Include the file
require_once 'includes/functions.php';

// Check again
if (function_exists('redirect')) {
    echo "redirect() function now exists<br>";
}

echo "Done testing.";