-
-
Save parzibyte/cba58c187aac40deaf006df849affa5a to your computer and use it in GitHub Desktop.
This file contains 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 | |
$value = $_GET["value"]; | |
$another_value = $_GET["another_value"]; | |
# Prepare the data | |
$date = date("Y-m-d H:i:s"); | |
$data = sprintf("On %s the value is %s and another_value is %s\n", $date, $value, $another_value); | |
# Save it | |
file_put_contents("data.txt", $data, FILE_APPEND); | |
# And we need to answer the client. We just tell the date ;) | |
echo $date; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment