Accepted answer

the problem is probably related to the permissions of the json file you created. check if it has read permissions (for everyone, not only the file's owner).

if not (which is probably the case), put this at the end of your php function creating the file, under fclose($out):

chmod($tmpfile, 0644); # read/write for file owner, read for everyone else

it needs to be readable by everyone since javascript is executed client-side and not server-side.

Related Query

More Query from same tag