I want to create a quick sortof “log” system in PHP that I can report to in case anything goes wrong.
I could use SQL or mailing for this, however, if one of those systems are down, I will never get the message, but it might also be a good idea to use one of those in conjunction with a log file.
How do I store/access my plain old TXT file so the PHP script is allowed to edit it, but not any malicious users? I’m pretty sure I can get the log.php to be protected from being accessed directly (via typing in it’s url in the browser)