Created
May 29, 2025 17:10
-
-
Save robyfirnandoyusuf/87e3753d4ac4a4059e100666405931d0 to your computer and use it in GitHub Desktop.
receiver digispark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $profile = isset($_GET['name']) ? $_GET['name'] : 'unknown'; | |
| $profile = preg_replace('/[^a-z0–9_\-]/', '', strtolower($profile)); | |
| $filename = "logs/" . $profile . ".bin"; | |
| if (!is_dir("logs")) { | |
| mkdir("logs", 0755, true); | |
| } | |
| file_put_contents($filename, file_get_contents('php://input')); | |
| http_response_code(200); | |
| echo "Saved as $filename"; | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment