Posted by MS on 07/13/05 02:49
Why can't I chmod?
I have created a user interface which allows image uploads. renames the
image and saves it to a dir.
At which point I run a chmod
if (chmod($piclocation, 0444)){
....}
the chmod must return true as what is within the if statement completes.
but when i check the file it is set at chmod 644
-----
I then want to read the image, resize it, and save it back with the same
name.
but when i try to chmod this image to 777 for instance i get an error
message
Warning: chmod(): Operation not permitted in
/home/xxxx/public_html/admin/php-bin/actions/reduce_image.php on line 45
safe_mode is off
I can not seem to get any chmod working within php, only via FTP.
--
----------------------------------------------------------------------------
http://www.clickonlingerie.com?SIG - Exotic Erotic Lingerie
----------------------------------------------------------------------------
[Back to original message]
|