<?php
/**
 * Enable PHP Error Display
 * Add this at the top of any PHP file to see errors
 */

// Display all errors
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);

// Log errors to file as well
ini_set('log_errors', 1);
ini_set('error_log', __DIR__ . '/php_errors.log');

echo "<div style='background: #f0f0f0; padding: 10px; border: 2px solid #333; margin: 10px;'>";
echo "<strong>PHP Error Display Enabled</strong><br>";
echo "PHP Version: " . phpversion() . "<br>";
echo "Error Reporting Level: " . error_reporting() . "<br>";
echo "Display Errors: " . ini_get('display_errors') . "<br>";
echo "</div>";
?>
