data reciever added
This commit is contained in:
Vexure 2024-05-04 16:40:32 +03:00
parent 74f4fc8682
commit 12e90e16a9
3 changed files with 22 additions and 0 deletions

3
.htaccess Normal file
View File

@ -0,0 +1,3 @@
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header set Access-Control-Max-Age "1000"

View File

@ -1 +1,3 @@
# psniquiz # psniquiz
nothing here but nothing

17
data_reciever.php Normal file
View File

@ -0,0 +1,17 @@
<?php
$datafile = "./data";
header("Content-Type: text/plain");
try {
$data = file_get_contents("php://input");
file_put_contents($datafile, $data);
date_default_timezone_set("Europe/Moscow");
echo date("H:i:s");
}
catch(Throwable $ex) {
echo "ЕГГОГ";
}
?>