• 12-12-2010, 21:55:23
    #1
    Biraz önce bi script yükledim admin sayfasına girişde hata aldım:
    HATA:
    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/sandikli/public_html/cache/default) is not within the allowed path(s): (/home/yurdune:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/yurdune/public_html/include/cache/storage/file.php on line 229
    
    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/sandikli/public_html/cache/default) is not within the allowed path(s): (/home/yurdune:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/yurdune/public_html/include/cache/storage/file.php on line 237
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/yurdune/public_html/include/cache/storage/file.php:229) in /home/yurdune/public_html/include/functions_general.php on line 60
    DEĞİŞECEK KISIM:
    if( !is_dir($dir) )
        {
    			// Make sure the index file is there
    			$indexFile      = $dir . DIRECTORY_SEPARATOR . 'index.html';
    			@ mkdir($dir) && file_put_contents($indexFile, '<html><body bgcolor="#FFFFFF"></body></html>');
    		}
        
    		// Make sure the folder exists
    		if( !is_dir($dir) )
        {
    			return FALSE;
    		}
    Burada:
    229:if( !is_dir($dir) )
    237: if( !is_dir($dir) )
  • 12-12-2010, 23:28:17
    #2
    $dir değişkenindeki "sandikli" kısmını "yurdune" olarak değiştirirseniz muhtemelen çalışacaktır. Gösterdiğiniz klasör yoluna ulaşma izniniz olmadığını söylüyor.