-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataCollector.php
More file actions
40 lines (26 loc) · 800 Bytes
/
Copy pathdataCollector.php
File metadata and controls
40 lines (26 loc) · 800 Bytes
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
<?php
/*
ESP8266: send data to your Domain(or mine)
Embedded-iot.net/dht11/dataCollector.php
Uses POST command to send DHT data to a designated website
The circuit:
* DHT
* Post to Domain
Stephen Borsay
Embedded-iot.net
www.udemy.com/all-about-arduino-wireless
https://www.hackster.io/detox
https://github.com/sborsay/Arduino_Wireless
*/
date_default_timezone_set("America/Los_Angeles");
$TimeStamp = "The current time is " . date("h:i:sa");
file_put_contents('dataDisplayer.html', $TimeStamp, FILE_APPEND);
if( $_REQUEST["steps"] )
{
echo " Steps: ". $_REQUEST['steps']. "<br />";
}
$var1 = $_REQUEST['steps'];
$WriteMyRequest=
"<p> Steps : " . $var1 . " </p>".
file_put_contents('dataDisplayer.html', $WriteMyRequest, FILE_APPEND);
?>