<?php
$logFile = __DIR__ . '/debug_log.txt';
if (file_put_contents($logFile, "TEST LOG: " . date('Y-m-d H:i:s') . " - Script reached successfully\n", FILE_APPEND)) {
    echo "Log write success";
} else {
    echo "Log write failed";
}
