[CODE]if (!file_exists($filename)):
if(mkdir($path.”users/”.$folder.”/”, 0755)){
$file = $path.’blank.xml’;
$newfile = $path.’users/’.$folder.’/trophies.xml’;
if(copy($file, $newfile)){
setcookie(“cache”, ‘ok’, time()+432000, ‘/’); /* expire in 6 hours */
update_cache($folder, $path); //write to the xml file
}else{
echo(‘ERROR, ‘.$path.’, ‘.$folder);
header( ‘Location: clear.php’ ) ;
die;
}
}else{
echo(‘ERROR, ‘.$path.’, ‘.$folder);
header( ‘Location: clear.php’ ) ;
die;
}
endif;
chmod($path.’users/’.$folder.’/’, 0755);
chmod($path.’users/’.$folder.’/trophies.xml’, 0755);
i cant get my folder & file to be 755 should this work ?