I am decoding JSON files using the following:
$filename = 'file.json';
$json = file_get_contents($filename);
$data = json_decode ($json,true);
This works perfectly fine with files that are not large. It also works perfectly fine in XAMMP json_decode.
Small files work fine, but as soon as they get larger (few MB+), the HTTP 500 error kicks in.
$filename loads fine and completely in PHP, so that is not the issue.
Anyone any idea if this is an limitation of JSON handling large files or a server setting (put memory and time limits already to -1 and 0 in PHP).
Thanks!