Running php script as another user


Mar 20, 2006
I have a file management program (in php) that I want to include in the front end of my main site. I have it set up to limit the directory to the signed-in user's home directory. The problem I have is that right now, I can only get it to run as 'nobody', which will write any of the files in the user's directorys as nobody:nobody. This is a problem for what I want to do... I need to be able to set the user to which the files are accessed and created (the user will change with the login) within the php file. I can't seem to find anything like this with a google search... Any help is much appreciated. Thanks