Non so, potrebbe essere sì un'impostazione del server (
): mi sono trovato in un caso in cui l'aggiunta batch di immagini ad una gallery di coppermine non funzionava causa permessi sbagliati... e come da te non prendeva i vari chmod via script... ho risolto "brutalmente" con una cosa del genere
codice:
//added by Andrea
if (isset($_GET['startdir'])) {
$chmod = chmod("/public_html/coppermine/albums/".$_GET['startdir']."/", 0777);
if (!$chmod) {
//CHMOD via FTP
$ftp_server = "targetsite.com";
$ftp_user_name = "user";
$ftp_user_pass = "password";
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// check connection
if ((!$conn_id) || (!$login_result)) {
echo "FTP connection has failed!";
echo "Attempted to connect to $ftp_server for user $ftp_user_name";
exit;
}
else {
$chmod_file = "/public_html/coppermine/albums/".$_GET['startdir']."/";
$ftp_chmod = ftp_chmod($conn_id, 0777, $chmod_file);
if (!$ftp_chmod) {
$last_way = ftp_site($conn_id, sprintf('CHMOD %o %s', 0777, $chmod_file));
}
// close the connection
ftp_close($conn_id);
}
}
}
//
Non è ortodossa, ma mi ha tolto le castagne da fuoco.