<?php
$d = sys_get_temp_dir();
$f = $d . "/coarca_test_" . time() . ".txt";
$ok = file_put_contents($f, "hello") !== false;
echo json_encode(["dir"=>$d,"write"=>$ok,"exists"=>file_exists($f)]);
if($ok) unlink($f);
