Re: [PHP] controlling ownership on file uploads ...

2002-11-28 Thread Marek Kilimajer
Besides what was said before, you don't even need to delete it, it will be deleted when your script is done. If you want to keep it, you have to move it elsewhere. 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

[PHP] controlling ownership on file uploads ...

2002-11-27 Thread Kenn Murrah
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 ... Since this site is being hosted elsewhere, is there

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Adam Voigt
exec(/bin/chown newuser:newuser /path/to/file); 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

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Jason Wong
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.

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread 1LT John W. Holmes
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.

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Peter Janett
PROTECTED] Sent: Wednesday, November 27, 2002 10:03 AM Subject: [PHP] controlling ownership on file uploads ... 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

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Jason Wong
On Thursday 28 November 2002 01:47, 1LT John W. Holmes wrote: Use chmod() to make the file(s) rw by 'others'. In my experience, this won't work for the same reason. Trying to run the chmod() function in PHP will give you an error about permission denied. Works for me :) Maybe you're using

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Kenn Murrah
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

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Ernest E Vogelsinger
At 20:27 27.11.2002, Kenn Murrah spoke out and said: [snip] but if i don't have the permissions to do that ... ??? [snip] Since the Apache user (www in your case) owns the file it will always be able to delete it