FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » login script using file, not mysql
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: login script using file, not mysql [message #171633 is a reply to message #171607] Wed, 12 January 2011 23:02 Go to previous messageGo to previous message
Jo Schulze is currently offline  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 ;)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: using same variable twice on same page
Next Topic: Re: instructor's solutions manual for Manufacturing Processes for Engineering Materials (5th Ed. Kalpakjian & Smith)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 26 23:14:47 GMT 2024

Total time taken to generate the page: 0.05128 seconds