05-05-2020, 01:20 PM
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:
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
without the two preceding lines.
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));