<?php
// Simple test file to check if PHP is working
echo "PHP is working!<br>";
echo "PHP Version: " . PHP_VERSION . "<br>";
echo "Current time: " . date('Y-m-d H:i:s') . "<br>";

// Test database connection
try {
    $pdo = new PDO("mysql:host=localhost", "root", "");
    echo "Database connection: SUCCESS<br>";
} catch (PDOException $e) {
    echo "Database connection: FAILED - " . $e->getMessage() . "<br>";
}

// Test file permissions
$test_file = 'test_write.txt';
if (file_put_contents($test_file, 'test')) {
    echo "File write permissions: SUCCESS<br>";
    unlink($test_file); // Clean up
} else {
    echo "File write permissions: FAILED<br>";
}

phpinfo();
?>
