Hello
I read a txt file (htpasswd) from a web page to check authentification...how to manage if 2 instances of the same page is reading the txt file ? is it a pb ? I use the file function to get the data...will the txt file be locked if another script is currently reading ? if yes how to manage that ?
EH!! What is this about. .htpasswd is used by Apache in conjunction with .htaccess to request and validate users. Should not be readable by your script anyway. But why are you using it to do the verification? Is it yours that you are after, OR ARE YOU TRYING TO HACK SOMEONE???
As a general rule, files are concurrently readable by default.
Roger Ramjet
nope..no hack
I have a session auth system using an htpasswd file generated by another application..
-> thanks it was my question
S'alright. And sorry for shouting. It's just that trying to read .htpasswd is the first hack that people try so my suspicions where aroused.
As a general rule, files are concurrently readable by default. -> thanks it was my question
After all, since Apache typically has at least half a dozen server processes running concurrently at any one time, .htaccess would have to be concurrently readable.