$line = fgets($response);
        if (trim($line) != 'Today') {
            echo "Please enter the date you would like to use in the format dd/mm/yy:  ";
            $message = fopen('php://stdin', 'r');
            $line2 = fgets($message);
            $date = $line2;
            fclose($message);
        } else {
            $date = date('d/m/Y');
            //php date for todays date
        }
        return $date;
        fclose($response);
        //echo $date;
    }
    function spacer()
    {
        for ($x = 0; $x < 150; $x++) {
            echo "-";
        }
        echo "\n";
    }
}
$entry = new JournalEntry();
$entry->spacer();
echo "Welcome to your personal Training Journal v1.0.  I will help you log your kickass workouts at the gym in a text file for you to review later \n";
echo "You will be prompted to enter some information about your exercises, the weight you have lifted and the number of sets and reps. \n";
$entry->spacer();
$entry->getDate();
$entry->entry();