Forum Moderators: coopster
if ( i can chmod folder ) { chmod("folder", 0777) } else { echo "can't chmod folder"; }
what do i replace "i can chmod folder" with? or is there a better way of doing this? any help appreciated.
Warning: chmod(): Operation not permitted in /WebServer/Site/thingy.php on line 2
followed by the text to echo if it can't chmod
if (!@chmod("folder", 0777){ echo "can't chmod folder"; }
many thanks :)