05-03-2020, 07:59 PM
(This post was last modified: 05-03-2020, 08:35 PM by Jens Noriʇzsɔɥ.)
The first error is due to a Windows madness, the byte order mark (BOM, https://en.wikipedia.org/wiki/Byte_order_mark). IIRC, you could change the encoding in Notepad++ to UTF-8 without BOM.
I am sorry that I can only help with the little things at the moment.
Hm, a few remarks:
I am sorry that I can only help with the little things at the moment.
Hm, a few remarks:
- you should use POST as you are wanting to change the state of your web server (store data),
- in this case you definitely receive the data as JSON, https://phyphox.org/wiki/index.php/Network_Connections has a PHP snippet on how to get it,
- you need to store the data somewhere and somehow (text or database, text perhaps a bit easier if you are not used to SQL),
- (best) a separate script reads this data, evaluates it, and finally displays it as a web page,
- create some magic so that the web page automagically updates every now and then.