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 t
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 a
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 Thursda
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 usin
Since the user Apache is running as created the file, it owns it too.
Make a quick PHP script to delete the files when ready.
HTH,
Peter Janett
New Media One Web Services
New Upgrades Are Now Live!!!
Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1
Sun Sola
> 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:
> >
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.
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 h
8 matches
Mail list logo