PHP Login Without MySQL

Hello:

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:

http://www.webmaster-talk.com/php-forum/21375-member-log-in-script-without-mysql.html

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?