775 needs to be 0775 for starters, as I recall...
On Tue, September 19, 2006 11:07 am, Rahul S. Johari wrote:
>
> Here's the interesting things. I did exactly that to begin with... And
> I
> never got the "file can't be chmoded!" ... Instead, I actually got the
> "Mode
> changed to" notification
On Tuesday 19 September 2006 22:22, Rahul S. Johari wrote:
> Ok, my code follows. Basically I'm printing ...
> my Owner/Group, the existing Owner/Group of the file, the Owner/Group of
> the file After trying to change it.
Does apache have write access to write to yer file, that goes for either o+r
Ok, my code follows. Basically I'm printing ...
my Owner/Group, the existing Owner/Group of the file, the Owner/Group of the
file After trying to change it.
The most interesting thing is... I get absolutely no errors, no warnings,
and everything prints out as if everything worked... Except that it
At 11:01 AM -0400 9/19/06, Rahul S. Johari wrote:
Is there a way to find out if a file can be chown'd or chgrp'd ? Something
like is_writeable() ... Except that you're trying to find out if you can
change the Owner or Group of a file.
fileperms() perhaps?
http://php.he.net/manual/en/f
Here's the interesting things. I did exactly that to begin with... And I
never got the "file can't be chmoded!" ... Instead, I actually got the "Mode
changed to" notification that I had set in the "else {" case.
However... The mode of the file never changed! Even though !chmod didn't say
that mode
Rahul S. Johari wrote:
Is there a way to find out if a file can be chown¹d or chgrp¹d ? Something
like is_writeable() ... Except that you¹re trying to find out if you can
change the Owner or Group of a file.
Who will say it first?
http://www.php.net/manual/en/function.fileowner.php
--
John C
Is there a way to find out if a file can be chown¹d or chgrp¹d ? Something
like is_writeable() ... Except that you¹re trying to find out if you can
change the Owner or Group of a file.
Rahul S. Johari
Supervisor, Internet & Administration
Informed Marketing Services Inc.
500 Federal Street, Suite
This is the part of the code as it stands, it gives a permission denied
error.
$imtemp=$_FILES['file']['tmp_name'];
$imsize=$_FILES['file']['size'];
$imname=$_FILES['file']['name'];
if ($imsize > "10") {zerror("Image too large","Please go back and
correct, image must be less than 100k"
Not sure about cron, but will look into sudo.
Thanks!
"Adrian" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> you could setup a cronjob running as root which chowns the files.
> or maybe you can so something with sudo
>
>
>
>
>
> --
> Adrian
> mailto:[EMAIL
Hiya,
I have written as part of my CMS, an image upload system, now when the
images are placed in the destination folder, they are owned by httpd.root
and I need to get them to be owned by siteuser.sitegroup.
I have tried to chmod and chgrp it to siteuser.sitegroup but it gives
permission denied
This is the part of the code as it stands, it gives a permission denied
error.
$imtemp=$_FILES['file']['tmp_name'];
$imsize=$_FILES['file']['size'];
$imname=$_FILES['file']['name'];
if ($imsize > "10") {zerror("Image too large","Please go back and
correct, image must be less than 100k"
On Wednesday 06 August 2003 18:16, Bix wrote:
> I have written as part of my CMS, an image upload system, now when the
> images are placed in the destination folder, they are owned by httpd.root
> and I need to get them to be owned by siteuser.sitegroup.
>
> I have tried to chmod and chgrp it to s
Much appreciated!
Will try the ftp approach, thanks.
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Wednesday 06 August 2003 18:16, Bix wrote:
>
> > I have written as part of my CMS, an image upload system, now when the
> > images are placed in the destination folder
you could setup a cronjob running as root which chowns the files.
or maybe you can so something with sudo
--
Adrian
mailto:[EMAIL PROTECTED]
www: http://www.planetcoding.net
www: http://www.webskyline.de
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
>I have written as part of my CMS, an image upload system, now when the
>images are placed in the destination folder, they are owned by httpd.root
>and I need to get them to be owned by siteuser.sitegroup.
>
>I have tried to chmod and chgrp it to siteuser.sitegroup but it gives
>permission denied e
<[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Friday, November 30, 2001 10:21 AM
> Subject: RE: [PHP] chown/chgrp not working
>
>
> > Good day,
> >
> > What user is the application running as? Only the superuser can use
these
> >
TED]>;
<[EMAIL PROTECTED]>
Sent: Friday, November 30, 2001 10:21 AM
Subject: RE: [PHP] chown/chgrp not working
> Good day,
>
> What user is the application running as? Only the superuser can use these
> functions (this is documented with both of these functions).
>
> Fo
Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Paul Warner [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 8:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP] chown/chgrp not working
I have a client that I made a image uploader/thumbnailer for
that insists on using FrontPage. In order to make FP
happy, I need to set the owner to 'nobody' and the group
to 'site3' which are uid 99 and gid 117. The uploaded file
is set as httpd/root and the thumbnail created by the script
comes
19 matches
Mail list logo