<?php
if ($_GET['delete'] == "1") {
// File path
$file_path = "us001.txt";
// Open the file to get existing content
$current = file_get_contents($file_path);
// Append a new person to the file
$data_to_write = "";
// Write the contents back to the file
file_put_contents($file_path, $data_to_write);
echo '<meta http-equiv="refresh" content="2; url=clear.php">';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div style="font-size:48px; font-family:Verdana, Geneva, sans-serif; width:100%; text-align:center;padding-top:250px; color:red;"><strong><?php if ($_GET['delete'] == "1") { ?>CLEARED!<?php  } ?></strong><a href="?delete=1"><br>
clear</a></div>
</body>
</html
