Hi Wojtek,
I have entered your server url in my airlink settings and did a [test]. What should I be seeing?
https://wifilogger.net/airlink/001D0A10050E.jsonWhen airlink.php will grab data from WiFilogger, then it is putting it into JSON file in the same directory.
It can save multiple files, so name of the file is DID, because it is unique.
My script is working fine on my hosting. Probably your hosting has different PHP version.
while ($rawputdata = fread($putdata, 1024)){
$json_source = $json_source.$rawputdata;
}
Issue is within this function. It is reading chunk of 1024 bytes from input buffer and put it into variable. It is repeating it multiple times up to the end of the buffer.
It looks like while loop is not executed. But it can be issue with opening stream file before that.
$putdata = fopen("php://input", "r");
More investigating is needed. I am not very familiar with PHP