how can i use php to change folder permissions on my site? its going to be in a admin only area
heres my code now..
function dirheader($dir, $dirid)
{
global $CONFIG;
$warning = '';
if (!is_writable($CONFIG['fullpath'].$dir))
$warning ="<tr><td class=\"tableh2\" valign=\"middle\" colspan=\"3\">\n".
"<b>Warning</b>: the script can't write in this directory, you need to change its mode to 755 or 777 before trying to add the pictures !</td></tr>\n";
return "<tr><td class=\"tableh2\" valign=\"middle\" colspan=\"3\">\n".
"<b>Put pictures of "</b>$dir<b>" into </b>".albumselect($dirid)."</td></tr>\n".$warning;
}
i just want it to have a button where i can click and itll change the permissions of the ($CONFIG['fullpath'].$dir) to chmod 777
any ideas?