$file_name = '';
for($i = 0; $i <= rand(10,20); $i++){
$new_ord = rand(87,122);
if($new_ord >= 97){
$file_name = $file_name . chr($new_ord);
}else{
$file_name = $file_name . $new_ord;
}
}
$json = file_get_contents("map.json");
$json_data = json_decode($json,true);
$json_data[$file_name] = array("status" => 0, "time" => time());
file_put_contents("map.json",json_encode($json_data));