Click to See Complete Forum and Search --> : strange image permissions
Bungholio
06-13-2003, 09:08 AM
Hi, thanks for looking,
Ive created a little thumbnail script that will create a temp folder and little images inside a folder called 'thumbs' ... anyways, everything works fine except for when I go to delete the images, with PHP or FTP (DW Site window or SmartFTP) ... for some reason I cannot delete them, ive checked the permissions of them, and nothing seems to be out of the ordinary...any ideas anyone?
Thanks,
Al
CHMOD the folder to 0666 (I think), then try it.
Jona
Bungholio
06-13-2003, 02:20 PM
they were at 755, and i tried changing them to 666 on both the folder and the images in the folder, but it wont let me, i get a host of errors when trying different things...
550 /public_html/weddings/images/thumbs: Permission denied
550 23: Operation not permitted
500-'SITE CHMOD 666 Robert & Julia' not understood.
500 SITE not understood.
I will email the server admin, i really dont understand tho, I havent had any problems with other sites on this server, could it be something in my mkdir function?
mkdir ("../images/$gid", 0775);
and then i use a file upload class to put the pictures in. im lost on this one :( thanks for any help
Yes, try changing your mkdir() function to this:
mkdir ("../images/$gid", 0666);
Jona
Bungholio
06-20-2003, 10:07 AM
hi, i tried 666, but my image upload script that follows the mkdir script, gave me an error of 'permission denied' ... anyways, i check via ftp, looks like 666 came up as 644, and now i cant chmod them to anything, however i can delete them... i still have about 10dirs that have thumbs in them, and i cant chmod or delete those...im screwed if i cant get this mkdir set up properly .... anyone have any guesses??
From my experience, chmod() doesn't work on all servers, so I would assumb that setting the mode with mkdir() may have the same downfalls. Try using FTP to manually change the mode to 0666.
Bungholio
06-20-2003, 10:29 AM
yea, oh well, i wanted to make seperate dirs for each gallery, but i guess ill just upload to one folder, and rename the files and add a suffix or something...thanks for the help :) !
One other thing you could try....
Set the directory that the subdirectorys are going to be in to 0777, and then try mkdir(). Not sure if it will help, but it is worth a try.
Bungholio
06-20-2003, 10:42 AM
ya i tried a whoel wack of different things, same problems tho...ah well no worries, there are other solutions :) :)
Ok, just thought I'd make sure you tried that one... :)