Re: login script using file, not mysql [message #171633 is a reply to message #171607] |
Wed, 12 January 2011 23:02 |
Jo Schulze
Messages: 15 Registered: January 2011
Karma:
|
Junior Member |
|
|
Peter H. Coffin wrote:
> If write access is NOT needed, is a lot easier just to hardcode all
> the passwords into the PHP script and not bother with the file in the
> first place.
Sry but I have a point here.
Talking about customer relationship:
It's perfectly ok to implement (on demand) that access is triggered by a
text file (which format whatsoever). If you grant the customer to
manipulate your application logic (as said, hardcode passwords to PHP
files") you'll soon run into problems.
> But the INSTANT you start talking about "but what if a script needs to
> generate the password access" or something, then you're right back
> into "Write access is needed."
BTW on the topic "write access/concurrency": file_put_contents() is
atomic. The last one wins ;)
|
|
|