$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm
?>
// The next line opens a file handle to a file called output.txt
// the file handle is like an alias to the file
// the a in the fopen function means append so entries
// will be appended to the output.txt file
$out = fopen("output.txt", "a");
// if the file could not be opened for whatever reason, print
// an error message and exit the program
if (!$out) {
print("Could not append to file");
exit;
}
// fputs writes output to a file. the syntax is where to write
// followed by what to write
// $name is the contents of the name field in the sample form
// \t represents a tab character and \n represents a new line
if (strlen($nick) > 0) {
fputs($out,"$nick\t");
fputs($out,"$today\t");
fputs($out,"$REMOTE_ADDR\n");
}
else {
fputs($out,"Error - null nickname from IP $REMOTE_ADDR \n");
}
fclose($out);
?>
Purchased 6/12/2003 - 2004 Acura TSX. Arctic Blue 6speed with Navigation
Pics of my TSX
TSX after being Clayed and 2 coats of Zaino
General TSX pics