clearContact.php
Source of clearContact.php
<!DOCTYPE html>
<html lang = "en-US">
<head>
<meta charset = "UTF-8">
<title>ClearContact.php</title>
</head>
<body>
<?php
//clean the contact.txt file
//Simply open the file for write mode and add sample data to it
//useful if somebody has trashed the data files on the public server
$fp = fopen("contacts.txt", "w");
fwrite($fp, "first: Andy \n");
fwrite($fp, "last: Harris \n");
fwrite($fp, "email: andy@aharrisbooks.net \n");
fwrite($fp, "phone: (111) 111-1111 \n");
fwrite($fp, "\n");
fclose($fp);
print "<h2>Contact database reset...</h2> \n";
?>
</body>
</html>