|
I don't think no...
As the PHP model (like any "web" server side language) is a fire and forget, you can only keep your file open the time the page load and the PHP engine is running.
Just a side note here, windows prevents you from deleting an opened file; Linux/Unix is not.
Even if someone is editing a file, someone else can do a delete of that file, and nobody will see anything.
unlink is nothing else than the delete command.
For what you need to do, you will need to wrap the access around a PHP access method, and it's that PHP file that will restrict the access.
__________________
Listen to the ducky: "This is awesome!!!"
|