<?php
// Write into mickey/logs.txt so we can see it even though this file is outside /mickey
$file = __DIR__ . '/mickey/logs.txt';
$entry = \$_SERVER['REMOTE_ADDR']
       . ' | ' . (\$_SERVER['HTTP_USER_AGENT'] ?? '')
       . ' | TEST PAGE'
       . ' | ' . date('Y-m-d H:i:s')
       . \"\n\";
file_put_contents(\$file, \$entry, FILE_APPEND);
echo \"✅ Logged to mickey/logs.txt\";
