Hey guys!

I am the developer of a CMS developed in PHP and was wondering if I could pick your brains.
I want to develop a file manager for the CMS and would like to here any hints, tips or gotchas you may have.
I host the CMS on a server and have a bunch of clients using it but I also need to have it work on self hosted systems, so I'm wondering about privileges.
The user would be whatever apache is set to, so how would I overcome that? I was just going to dig around and see how CPanel does it as I offer hosting with CPanel for every account on a WHM.
I could set up a WHM remote access key but then run the issue of giving the user to many privileges.

Some of the features I would like to offer would be the standard set of file manager functions: copy files from one folder to another, while not allowing them out of their own root; changing permissions on a file or folder etc. etc.

I was planning on using Flash for the interface as that will also give the user both local and remote file transfer privileges, but the issue is still one of permissions when the PHP script tries to access directories and files.

Thanks for any and all help,
Paul.