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
#12
Thank you very much for your help ! And sorry for all my newbies questions ! php is a total new world for me !
Indeed, may be its too ambitious for me to create this kind of experiment.

Indeed, with UTF-8 encoding it works better !
I can now send the phyphox program to my phone via bluetooth easily. The first error doesn't appears now. The second still appears but only if i store the .phyphox file in my smartphone first and then try to open it. So this problem must comes from the OS of my phone. It's a huawei.

Now, it's clear that phyphox tries to communicate with my laptop.
But i have a new error that appears in the screen of my phone every time phyphox tries to send a value to my laptop :
Network error: Generic error. IOException

May be this problem comes from my server.

I tried to create a new .php file. I only try to store the data in a .txt file.

Here it is :
<?php
$json = file_get_contents('php://input');
$data = json_decode($json, true);
file_put_contents('Doc1.txt', $data)
?>
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 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: