Hey.
Quick question, if this is possible.
At the moment, I have a 'control' within a protected Staff Area which allows authorised members of staff to toggle a .txt file (which is in an area not accessible yb the public, in a directory more deep than htdocs) which contains 'open' or 'close'.
If the .txt file states 'open', it presents an application form to general users, if requested. Likewise, if the .txt file contains 'close' it isn't, and a message is sent to say the form is closed.
What I wanted to do is have another .txt file, called history.txt which states which account opened or closed the form, the date and time.
One line of our edit_status.php states:
output('Success! <strong>' . $_SESSION['account'] . '</strong> successfully toggled the Form Status to: <strong>' . $action . '</strong>.');
Based on this, can we have some way for the same message, along with the date and time to be echo'ed into 'history.txt' which could then be presented on a history.php in a readable format? Line by line?
For example, problem.txt would look like:
ACCOUNT successfully toggled the Form status to: close on date / time.\n
ACCOUNT successfully toggled the Form status to: open on date / time.\n
ACCOUNT successfully toggled the Form status to: close on date / time.\n
ACCOUNT successfully toggled the Form status to: open on date / time.\n
ACCOUNT successfully toggled the Form status to: close on date / time.\n
Then for our protected 'history.php' to show this file, with each thing on a new line.
Hope this makes some sense, if it doesn't I'll try to clarify again. Thanks in advance!