05-04-2020, 09:47 AM
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)
?>
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)
?>