Hi,
I'm working on a simple file manager script that I wrote a couple of years ago. It is basically a simple front end written in PHP for users of a CMS in which this file manager is used. Like I said, it's a front end that connects directly to a specified base directory on my server. For example,
+pdf
+splash_images
+user_photos
+usera
+userb
I want to be able to prevent a user (usera for example,) to be able to browse/upload to the +pdf, +splash_images, +user_photos, but NOT be able to browse other user folders.
Is there a way to do this with PHP filesystem functions? I've been looking through the functions trying to find something that would make this work, but I can't seem to figure it out. Basically, I'm just trying to find a way to put folder permissions on folders through PHP in a web browser. I know I could just use chmod then if that was the only thing I wanted to do, but I need this to be different for different virtual users in the CMS (i.e. Administrators and Users).
Any ideas?
Andy