I have a situation where I need create a simple site login with PHP that doesn’t rely on a database. So writing to a text file is the way to go (that file will be stored outside the document root). Security isn’t a big concern though. I found this one sample:
But that script has some problems and I haven’t figured them all out (it’s been a long while since I’ve used PHP). Can anyone help fix the syntax to get these files to work together?