<?php
    $fh = fopen('data.json', 'a') or die("{status:'failed',reason:'cannot open data file'}");
    echo "{status:'ok'}"
?>