Permission Problems

From: Date: Wed, 16 May 2001 19:57:17 +0000
Subject: Permission Problems
Groups: php.general 
Request: Send a blank email to php-general+get-53095@lists.php.net to get a copy of this message
One of my scripts must create a directory, then a file in it. This part works great, although when another script tries to delete the file (and directory afterwards) it doesn't work because of the permissions. The user on the created file is 'httpd', from apache. The owner of the script is called 'zeus'. How can I create this file under the owner of 'zeus' so that they can be deleted? Right now they're sitting on my web server and I don't have permission to delete them.. and after 6 tests the directory is getting kinda nasty. :P I was thinking of using chown right after creating the file to set the owner, however the documentation on php.net says that this can only be used when executed by a superuser user. Any ideas or suggestions?

« previous php.general (#53095) next »