but if i don't have the permissions to do that ... ???
----- Original Message ----- From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 11:35 AM Subject: Re: [PHP] controlling ownership on file uploads ... > 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 > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php