On Thu, June 7, 2007 7:30 am, Ross wrote: > n relation to my other posts it is not that the folder permission are > not > working, when I put an image inside them the image automatically has a > 600 > chmod and has the owner is 'nobody'. This means I cannot delete the > files. > > mkdir('images/'.$customer_id, 0755); > chown('images/'.$customer_id, 'ross'); > > with this I get a > > Warning: chown() [function.chown]: Operation not permitted Only root can chown a file, as far as I know... What you would NORMALLY do would be to use 0775 on directories and 0664 on files, and then get your webhost to put 'ross' and 'nobody' into the same group, and have the Group setting in httpd.conf be that group. Then, when 'nobody' makes a file, you can read/write/exec it as needed. YMMV -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php