My mistake "0600" is fine but "0311" screws up even MY access to the folder or the files and I have to go to the command line to fix it ...and if the folder has nested directories guess what .. GEEZ
and this "00" this is SOOO upsetting.
I admit I am not best programer but in the setup folder of Zenphoto has quite a bit of "0311" in it for something that does not change ANYTHING to "0311"
-----------------------------
function setupLog($message, $anyway=false, $reset=false) {
global $debug, $_zp_mutex, $chmod;
if ($debug || $anyway) {
if (is_object($_zp_mutex)) $_zp_mutex->lock();
if (!file_exists(dirname(SETUPLOG))) {
mkdir_recursive(SETUPLOG, $chmod & 0311);
---------------------------
if (is_dir($component)) {
if ($updatechmod) {
@chmod($component,$chmod | 0311);
clearstatcache();
$perms = fileperms($component)&0777;
if ($permissions==1 && !checkPermissions($perms, $chmod | 0311)) {
if (checkPermissions($perms&0755, 0755) || TEST_RELEASE) { // could not set them, but they will work.
-------------------------------
$chmod = fileperms(dirname(dirname(__FILE__)))&0666;
$en_US = dirname(dirname(__FILE__)).'/locale/en_US/';
if (!file_exists($en_US)) {
@mkdir(dirname(dirname(__FILE__)).'/locale/', $chmod | 0311);
@mkdir($en_US, $chmod | 0311);