<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $status = file_get_contents("php://input");  // Read raw POST body
    file_put_contents("status.txt", $status);   // Save to file
    echo "Status updated: " . $status;
} else {
    echo "Invalid request method.";
}
?>
