clearContactCSV.php

Source of clearContactCSV.php

<!DOCTYPE html>
<html lang = "en-US"> 

  <head>
    <meta charset = "UTF-8">
    <title>ClearContact.php</title>
  </head>
  <body>
    <?php
    //clean the contact.csv 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.csv", "w");
    fwrite($fp, "Andy	Harris	andy@aharrisbooks.net	111-1111 \n");
    fwrite($fp, "Bill	Gates	bill@Microsoft.com	222-2222 \n");
    fwrite($fp, "Steve	Jobs	steve@apple.com	333-3333 \n");
    fwrite($fp, "Linus	Torvalds	linus@linux.org	444-4444\n");
    fclose($fp);
    print "<h2>Contact database reset...</h2> \n";
    ?>
  </body>
</html>