Hey everyone,
This is related to the question I asked earlier http://phpbuilder.com/board/showthread.php?t=10335587 (I would have put this question as a thread in that discussion, but the point of that topic was resolved. So here's a new topic.)
Anyway, I am still working on doing a "virtual directory" (using PHP as a front-end to accessing physical files and folders in a UNIX environment, while keeping track of permissions for certain folders in a MySQL database table.)
My problem is this: When a user is navigating through the file manager (PHP front-end) for the time being, I grab permissions from the database table ONCE and put it in a $SESSION variable as an array of all of the different permissions for certain folders. But the problem is... the $SESSION array is old once I fill it up with database table data...
What happens when a new folder with new permissions is added to the physical directory and database table? If a user is in the process of browsing the file manager (PHP front-end) they will be able to see the new physical folder, but it won't have ANY permissions yet because the $_SESSION variable is the same as before.
I'm just trying to avoid having to grab permissions data from the database EVERY TIME someone traverses through a directory. (Ultimately I would like to implement all of this with Javascript, but the problem still remains in the case of making a Javascript/PHP file manager.)
Any ideas? This has been making me go crazy lately, just trying to get this big project over with. Thanks,
Andy