<?php
require_once 'auth.php';
echo "<h2>PHP Extensions Check</h2>";

$extensions = ['mysqli', 'pdo', 'pdo_mysql', 'mysql'];

foreach ($extensions as $ext) {
    if (extension_loaded($ext)) {
        echo "✅ $ext is available<br>";
    } else {
        echo "❌ $ext is NOT available<br>";
    }
}

echo "<hr>";
echo "<h3>All Loaded Extensions:</h3>";
$loaded = get_loaded_extensions();
sort($loaded);
foreach ($loaded as $ext) {
    echo "- $ext<br>";
}

echo "<hr>";
echo "<h3>PHP Version:</h3>";
echo phpversion();
?>