-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
40 lines (30 loc) · 834 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<html>
<head>
<title>HelloW</title>
</head>
<body>
<?php
echo "saving file...";
$_id = $_GET["id"];
$_time = $_GET["time"];
$_data = $_GET["data"];
echo "id equals $_id \n";
echo "time equals $_time \n";
echo "data equals $_data \n";
echo getcwd();
if ( $fl = fopen('logs.txt','a')) {
fwrite($fl,"\"data\": { \"id\" : \"". $_id . "\", "
.\"time\" : \"". $_time . "\", "
."\"data\" :\"" . $_data . "\" }\n" );
fclose($fl);
}
/*
$myfile = fopen("C:\\Users\\romak\\Desktop\\CS\\Zilla downloads\\newfile.txt", "a") or die("Unable to open file!");
$txt = "Minnie Mouse\n";
fwrite($myfile, $txt);
fclose($myfile);
*/
echo " complete";
?>
</body>
</html>