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?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to