uploadDir}status_{$_GET['id']}.txt"; if (file_exists($file)) { $str = file_get_contents($file); echo $str; } else { $status = "