I am going to need to make changes to a php
file in runtime.
This is a configuration file that upon emergency would need a change to one of its settings.
My question is whether it is possible to lock
the file before writing so that other sessions that try to access that file would postpone until the file is rewritten, and not crash the session saying the file was not found ?
I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...