<?php
if (function_exists('imagecreatefrompng')) {
    echo '<h2 style="color:green;font-family:sans-serif">✅ GD is enabled — image upload will work!</h2>';
    $info = gd_info();
    echo '<pre>' . print_r($info, true) . '</pre>';
} else {
    echo '<h2 style="color:red;font-family:sans-serif">❌ GD is NOT enabled.</h2>';
    echo '<p style="font-family:sans-serif">Open <strong>C:\xampp\php\php.ini</strong>, find <code>;extension=gd</code> and remove the semicolon, then restart Apache.</p>';
}
