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
#17
I think you are right. I uploaded your php file to our server and only adjusted the address in the phpyhox file and it works. I get a Doc1.txt with the following content:
Code:
a:1:{s:3:"abs";a:9:{i:0;d:9.801656071801983;i:1;d:9.804489695813183;i:2;d:9.802379780988671;i:3;d:9.798851544620522;i:4;d:9.796296726966633;i:5;d:9.689141813263785;i:6;d:9.793424027695528;i:7;d:9.794612350747274;i:8;d:9.792605530363533;}}

This looks a bit overcomplicated due to the effect of "serialize", but the data is there and phyphox does not show any errors.

At that point I can only recommend checking the address (including the unusual port 6023) and compare it to the address that is working in your webbrowser. Also, since you can reach your server from the webbrowser, you could try a get-version instead of post. Maybe your webserver cannot handle the JSON-POST-Data or does not allow to retrieve it via php://input. Your PHP file then only needs
PHP Code:
file_put_contents('Doc1.txt'serialize($_GET)); 
without the two preceding lines.
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 Sebastian Staacks - 05-05-2020, 01:20 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: