This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Server for live experiment
#9
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:
  • 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.
For me, it appears that you yourself are calling the script so your result would be expected. If I am wrong, please apologize any obviousness above…
Reply


Messages In This Thread
Server for live experiment - by julien - 05-01-2020, 09:43 AM
RE: Server for live experiment - by julien - 05-02-2020, 02:25 PM
RE: Server for live experiment - by julien - 05-03-2020, 11:43 AM
RE: Server for live experiment - by julien - 05-03-2020, 04:27 PM
RE: Server for live experiment - by Jens Noriʇzsɔɥ - 05-03-2020, 07:59 PM
RE: Server for live experiment - by julien - 05-04-2020, 09:47 AM
RE: Server for live experiment - by julien - 05-05-2020, 09:44 AM
RE: Server for live experiment - by julien - 05-05-2020, 12:10 PM
RE: Server for live experiment - by julien - 05-07-2020, 07:49 PM
RE: Server for live experiment - by julien - 05-08-2020, 01:07 PM
RE: Server for live experiment - by julien - 05-11-2020, 04:44 PM
RE: Server for live experiment - by julien - 05-12-2020, 09:23 AM

Forum Jump: