Ben bir yüklenen görüntü alır bir sahneleme sitede çalışan bir komut dosyası, bir dizin oluşturur (varsa) ve dizin bahsedilen görüntü yükler var.
Ben canlı siteye oluşturulan alır dizini değiştirmek için çalışıyor ve hiçbir şans yaşıyorum. Hala yerine canlı bir evreleme URL arıyor bu kod bloğu olduğunu oldukça belli.
function chmodDirectory( $path = '.', $level = 0 ){
$ignore = array( 'cgi-bin', '.', '..' );
$dh = @opendir( $path );
while( false !== ( $file = readdir( $dh ) ) ){ // Loop through the directory
if( !in_array( $file, $ignore ) ){
if( is_dir( "$path/$file" ) ){
chmod("$path/$file",0777);
chmodDirectory( "$path/$file", ($level+1));
} else {
chmod("$path/$file",0777); // desired permission settings
}//elseif
}//if in array
}//while
closedir( $dh );
} / / Fonksiyon
?> Thanks in advance for any help!
EDIT: Sorun yolları değiştirdim bile o yatıyor ve veritabanı hazırlama dizinde erişilen i oluşturulmuş veya erişilebilir olmak isteyen dizin hala yaratılıyor doğru URL'leri, / saklar.