# PHP Login Without MySQL

**URL:** <https://forum.kirupa.com/t/php-login-without-mysql/245153>\
**Category:** programming\
**Created:** [November 27, 2007, 12:14am UTC](https://forum.kirupa.com/t/php-login-without-mysql/245153 "2007-11-27T00:14:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Post date:** [November 27, 2007, 12:14am UTC](https://forum.kirupa.com/t/php-login-without-mysql/245153/1 "2007-11-27T00:14:38Z")

</div>

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](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?
