Hi,

Thursday, March 11, 2004, 5:20:04 PM, you wrote:
J> Hi.

J> I have a script that creates a folder and a bunch of jpegs... however
J> instead of creating them into the user/group I'm in (let's call it
J> "myGroup") it creates them into "Nobody". The problem becomes that when I
J> ftp in to delete the files and idenitfy myself as myGroup, it fails to
J> delete any of the files or folders and spits out a 550 permission denied.
J> Having to delete the files from a script is a real pain too.

J> I'm wondering how I can create the files and folders in my scripts so that
J> they are under the un/grp of myGroup.


J> here's how the folder is being created:

J>   if (!is_dir($thumbnailsPath))
J>     mkdir ($thumbnailsPath, 0755);

J> and the files:

J>     $src = ImageCreateFromJpeg($defImagesPath.$fileWExt);
J>     $dst = ImageCreateTrueColor($maxWidth, $maxHeight);
J>     $white = ImageColorAllocate($dst, 255, 255, 255);
J>     ImageFill ($dst, 0, 0, $white);
J>     ImageCopyResampled($dst, $src, 0, 0, 0, 0, $thumbWidth, $thumbHeight,
J> $width, $height);

J>     ImageJpeg($dst,
J> $defImagesPath."thumbnails/thumb_".$fileWExt, 100);
J>     ImageDestroy($src);
J>     ImageDestroy($dst);


J> I've tried chown and chgrp, but I get an error that tells me basically I
J> don't have sufficient privileges to do so.

J> Linux server
J> Apache 1.3.29 (Unix)
J> PHP 4.3.3

J> If you're going to ask me if suEXEC is installed and enabled I'm not sure...
J> You're going to have to instruct me how to check because I'm totally
J> ignorant on that subject. I see a suexec in a usr/sbin/ directory two levels
J> below my home directory:

J> -r-s--x---    1 root     apache      11312 Oct 23  2002 suexec

J> When I try "enable suexec" I get this:

J> jailshell: enable: suexec: not a shell builtin

J> Any advice?

Use the php ftp functions to create directories and move uploaded
files would be one way.

-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to