False, "error" => $e ); } if(!empty($_GET['f'])){ header("Content-type: application/json"); } print json_encode($data); }