• 01-12-2006, 10:56:29
    #1
    ya arkadaşlar bu ardarda 2 ci sorum ama resim eklediğim zaman şöyle bir hata verdi
    Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 10636 is not allowed to access / owned by uid 0 in /home/resimlerim/public_html/resim_ekle.php on line 180
    kodlar
    $dizin = "/resimler/"; 
    $file_name = basename($_FILES["dosya"]["name"]);
     
    if ($_POST) 
    { 
       if ($_FILES["dosya"]["size"] <= 1000000) 
       { 
          if ($resim = move_uploaded_file($_FILES["dosya"]["tmp_name"], $dizin . basename($_FILES["dosya"]["name"]))) 
          { 
             if ($_FILES["type"] == "image/jpeg" || $_FILES["type"] == "image/pjpeg" || $_FILES["type"] == "image/gif") 
             {
    180 ci kod
     if ($resim = move_uploaded_file($_FILES["dosya"]["tmp_name"], $dizin . basename($_FILES["dosya"]["name"]))) 
     
    Ben tam anlamadım ama hatada safe mod yazıyo acaba serverdanmı kaynaklanıyor. script kayyo da
  • 01-12-2006, 10:59:53
    #2
    Sunucu SAFE MOD'da çalışıyormuş. Safe modda dosya taşıma işlemi kısıtlıymış sanırım. Az buçuk ingilizce ve php bilgimle bunu anlıyorum.
  • 01-12-2006, 11:12:28
    #3
    Üyeliği durduruldu
    copy fonksiyonunu kullan açık olur genelde
  • 01-12-2006, 11:17:29
    #4
    Yani şu şekilde mi :
    if ($resim = copy($_FILES["dosya"]["tmp_name"], $dizin . basename($_FILES["dosya"]["name"])))


    ?????


    EDİT: Yukardaki gibi yaptım ama şööle bi hata verdi
    Warning: copy(): open_basedir restriction in effect. File(/resimler/pot.jpg) is not within the allowed path(s): (/home/iresimlerim/usr/share/php:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/resimlerim/public_html/resim_ekle.php on line 180
    
    Warning: copy(/resimler/pot.jpg): failed to open stream: Operation not permitted in /home/resimlerim/public_html/resim_ekle.php on line 180
    Islem basarisiz.
    Galiba yanlış yaptım
  • 01-12-2006, 11:22:34
    #5
    Kurumsal PLUS
    izin verilmemiş.. ama safe mode on olan sunucunun sağlıklı çalışması da beklenemez..
  • 04-12-2006, 00:35:00
    #6
    $dizin = $_SERVER['DOCUMENT_ROOT']."/resimler/";
    şeklinde denermisiniz