https://www.icyphoenix.com/viewtopic.php?f=30&t=477&p=4057#p4057 ----------------------------------- Mighty Gorgon Tue 24 Oct, 2006 22:02 Re: Simple CHMOD Script For Linux Shell Users ----------------------------------- I've rewritten it a bit for the new project... this is for XS plus CT5. :wink: [codeblock syntax=php]Unable to change permission of (' . $chmod_777[$i] . ')
'; } else { echo 'Successfully chmodded (' . $chmod_777[$i] . ')
'; } } for ( $i = 0; $i < count($chmod_666); $i++ ) { if (!chmod ($chmod_666[$i], 0666)) { echo 'Unable to change permission of (' . $chmod_666[$i] . ')
'; } else { echo 'Successfully chmodded (' . $chmod_666[$i] . ')
'; } } ?>[/codeblock] [quote user="moreteavicar" post="3889"]I think we both suffer from multiple installing! [/quote] Yes... of course! :mrb: [quote user="moreteavicar" post="3889"]If you're thinking of adding it into the install script, I was thinking about adding some logic to use the ftp_chmod protocol if the standard php chmod returns false (added to that, might be worth checking the file/folder exists before resorting to ftp). However, that would then require another screen prompt for users to input their ftp host, username and password. Although in all, it might not sound much quicker than a user doing it manually, it is a way of avoiding those common chmod installation errors as experienced by the average newcomer![/quote] Regarding this I have to think about it... I don't know how to implement it... if you have some ideas, please go working on it! :lol: