Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-14 Thread Bix
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"

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-14 Thread Bix
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

[PHP] chown / chgrp of a http owned file after upload

2003-08-14 Thread Bix
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

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-14 Thread Bix
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"

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-14 Thread Jason Wong
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

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-11 Thread Bix
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

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-10 Thread Adrian
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

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-07 Thread Mike Migurski
>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