Re: controlling ownership on file uploads ...

From: Date: Wed, 27 Nov 2002 17:35:48 +0000
Subject: Re: controlling ownership on file uploads ...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-126313@lists.php.net to get a copy of this message
On Thursday 28 November 2002 01:04, Adam Voigt wrote: > exec("/bin/chown newuser:newuser /path/to/file"); The user running apache (in this case 'www') will most likely not have the requisite permissions to perform that operation. > On Wed, 2002-11-27 at 12:03, Kenn Murrah wrote: > > Greetings. > > > > I've written a simple form to allow my clients to upload files to me, and > > it works fine EXCEPT that the uploaded file is owned by "www" and I while > > I can read the file, I don't have the necessary permissions to delete it > > when done ... Use chmod() to make the file(s) rw by 'others'. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Beware of Programmers who carry screwdrivers. -- Leonard Brandwein */

« previous php.general (#126313) next »