Alicia
12-29-2003, 03:52 AM
hi guys,
i wrote a code to chmod a folder but why it deosn't work ??
chmod ("../members/$web_add/images", 0777);
$copy = copy($_FILES['thumbnail']['tmp_name'], "../members/$web_add/images/{$thumbnail_name}");
then this error displayed:
Warning: chmod(): Operation not permitted in /home/local/public_html/web/wc_upload.php3 on line 96
Warning: copy(../members/user/images/logo2.jpg): failed to open stream: Permission denied in /home/local/public_html/web/wc_upload.php3 on line 97
Did i miss something in my code ??? it is troublesome for me to chmod the folders manually when i get more and more folders to chmod..
please advise.
i wrote a code to chmod a folder but why it deosn't work ??
chmod ("../members/$web_add/images", 0777);
$copy = copy($_FILES['thumbnail']['tmp_name'], "../members/$web_add/images/{$thumbnail_name}");
then this error displayed:
Warning: chmod(): Operation not permitted in /home/local/public_html/web/wc_upload.php3 on line 96
Warning: copy(../members/user/images/logo2.jpg): failed to open stream: Permission denied in /home/local/public_html/web/wc_upload.php3 on line 97
Did i miss something in my code ??? it is troublesome for me to chmod the folders manually when i get more and more folders to chmod..
please advise.