bayGaReZ adlı üyeden alıntı: mesajı görüntüle
Hocam satırdaki kodu yazmak yerine hata mesajını yazsanız çok daha güzel olacak ? Verdiğiniz satırda bir hata yok. Hata mesajını yazarsanız en azından ne hatası veriyor ya da ne sorun var anlarız. Bu şekilde hiç birşey anlaşılmıyor maalesef.
resimi seçiyorum resim ismini giriyorum yükle dediğimde

Warning: move_uploaded_file(../resimler/slaytresimleri/rrrrrr.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in C:\inetpub\vhosts\x.com\httpdocs\2\panel\slaytgale ri.php on line 29

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\Temp\php3E6B.tmp' to '../resimler/slaytresimleri/rrrrrr.jpg' in C:\inetpub\vhosts\x.com\httpdocs\2\panel\slaytgale ri.php on line 29


<?php include("ust.php"); ?>
<section id="content">
	<section class="container_12 clearfix">
	 <?php 
$tematable="ys_slaytlar";
$uploaddir = $kok_dizini.'resimler/slaytresimleri/';

if (isset($_GET['islem'])) 
	{

	//EKLEME
	if ($_GET['islem']=='yeni' AND isset($_POST['durum'])) {

	if ($_FILES['kullaniciresmi']['name']!='') {
	$uploadfile = $uploaddir . basename($_FILES['kullaniciresmi']['name']);
	// Yüklenen dosya boyutu 20 KB'yi geçmesin
    if($_FILES["kullaniciresmi"]["size"] > 500000)
    {
    echo '<div style="text-align:center; color:Red; font: bold 14px;" ><img src="images/hata.png"><br><br>Dosya boyutu 500 KB yi aşamaz <br /><br /><a href="slaytgaleri.php"><< Geri Dön</a> </div>';
    return;
    }
 
    // İzin verilen dosya türleri
    if(!($_FILES["kullaniciresmi"]["type"] =="image/gif" | $_FILES["kullaniciresmi"]["type"] =="image/jpeg" | $_FILES["kullaniciresmi"]["type"] =="image/png"))
    {
    echo '<div style="text-align:center; color:Red; font: bold 14px;" ><img src="images/hata.png"><br><br>Yalnızca gif , png veya jpg dosyası yükleyebilirsiniz <br /><br /><a href="slaytgaleri.php"><< Geri Dön</a> </div>';
    return;
    }
		if (move_uploaded_file($_FILES['kullaniciresmi']['tmp_name'], $uploadfile)) 
			{$kodsorgusu="INSERT INTO ". $tematable ." (slaytid, baslik, resim) VALUES 
			('','".$_POST['baslik']."','".$_FILES['kullaniciresmi']['name']."')";
			$db->query($kodsorgusu);
			echo '<table border="0" cellpadding="0" cellspacing="0" width="680">
                                <tbody><tr>
                                  <td align="center" height="30" width="30"><img src="images/tamam.png" height="30" width="30" /></td>
                                  <td bgcolor="#cccccc" valign="top" width="1"></td>
                                  <td> <span class="stylemurat"><strong> &nbsp;</strong></span>Yeni slayt basariyla eklendi.</td>
                                </tr>
                              </tbody></table>';

}
		else 
			{ echo '<table border="0" cellpadding="0" cellspacing="0" width="680">
                                <tbody><tr>
                                  <td align="center" height="30" width="30"><img src="images/hata.png" height="30" width="30" /></td>
                                  <td bgcolor="#cccccc" valign="top" width="1"></td>
                                  <td> <span class="stylemurat"><strong> &nbsp;</strong></span>zgnz bir hata ikti.</td>
                                </tr>
                              </tbody></table>';

}
		}
	
	
	
	}//eklemeson

	//SILME
	if ($_GET['islem']=='sil') {
		$resim_sil= $db->get_var("SELECT resim FROM ".$tematable." where slaytid='".$_GET['id']."'");
		$sil=@unlink($uploaddir.$resim_sil);
		if ($sil) {
		$kodsorgusu="DELETE FROM ". $tematable ." WHERE slaytid='".$_GET['id']."'";
		$db->query($kodsorgusu);
		echo '<table border="0" cellpadding="0" cellspacing="0" width="680">
                                <tbody><tr>
                                  <td align="center" height="30" width="30"><img src="images/tamam.png" height="30" width="30" /></td>
                                  <td bgcolor="#cccccc" valign="top" width="1"></td>
                                  <td> <span class="stylemurat"><strong> &nbsp;</strong></span>Resim basariyla silindi</td>
                                </tr>
                              </tbody></table>';

}
		else 
			{ echo '<table border="0" cellpadding="0" cellspacing="0" width="680">
                                <tbody><tr>
                                  <td align="center" height="30" width="30"><img src="images/hata.png" height="30" width="30"/></td>
                                  <td bgcolor="#cccccc" valign="top" width="1"></td>
                                  <td> <span class="stylemurat"><strong> &nbsp;</strong></span>Bir sorun ikti.</td>
                                </tr>
                              </tbody></table>';

}
	}//silmeson

	//DUZENLEME
	if ($_GET['islem']=='duzenlendi') {

$uploadfile = $uploaddir . basename($_FILES['kullaniciresmi']['name']);

		if (!$_FILES['kullaniciresmi']['name'])
		{
		$kodsorgusu="UPDATE ". $tematable ." SET baslik='".$_POST['baslik']."' WHERE slaytid='".$_POST['id']."'";
		$db->query($kodsorgusu);
		echo '<table border="0" cellpadding="0" cellspacing="0" width="680">
                                <tbody><tr>
                                  <td align="center" height="30" width="30"><img src="images/tamam.png" height="30" width="30" /></td>
                                  <td bgcolor="#cccccc" valign="top" width="1"></td>
                                  <td> <span class="stylemurat"><strong> &nbsp;</strong></span>Resim basariyla dzenlendi</td>
                                </tr>
                              </tbody></table>';

}
		
		else
		
		{
		$resim_sil= $db->get_var("SELECT resim FROM ".$tematable." where slaytid='".$_POST['id']."'");
		$sil=@unlink($uploaddir.$resim_sil);		
		if (move_uploaded_file($_FILES['kullaniciresmi']['tmp_name'], $uploadfile)) 
			{ 		
			$kodsorgusu="UPDATE ". $tematable ." SET baslik='".$_POST['baslik']."' ,
			resim='".$_FILES['kullaniciresmi']['name']."' WHERE slaytid='".$_POST['id']."'";
			$db->query($kodsorgusu);
			echo '<table border="0" cellpadding="0" cellspacing="0" width="680">
                                <tbody><tr>
                                  <td align="center" height="30" width="30"><img src="images/tamam.png" height="30" width="30" /></td>
                                  <td bgcolor="#cccccc" valign="top" width="1"></td>
                                  <td> <span class="stylemurat"><strong> &nbsp;</strong></span>Basariyla dzenlendi</td>
                                </tr>
                              </tbody></table>';

}
		else 
			{ echo '<table border="0" cellpadding="0" cellspacing="0" width="680">
                                <tbody><tr>
                                  <td align="center" height="30" width="30"><img src="images/hata.png" height="30" width="30"/></td>
                                  <td bgcolor="#cccccc" valign="top" width="1"></td>
                                  <td> <span class="stylemurat"><strong> &nbsp;</strong></span>Bir sorun ikti.</td>
                                </tr>
                              </tbody></table>';

}
		}
	}//duzenlemeson
}
?>
		<section id="main" class="grid_9 push_3">
		<?php 
if ( isset($_GET['islem']) AND $_GET['islem']=='yeni' AND !isset($_POST['durum'])) { ?>

<article>
				<h1>Yeni Ekle </h1>
	<FORM class="uniform" enctype="multipart/form-data" METHOD="POST" ACTION="slaytgaleri.php?islem=yeni">
					<dl>
						<dt>
						  <label for="photo_file">Resim Ekle:</label>
						</dt>
						<dd><input name="kullaniciresmi" type="file"  /></dd>

						<dt>
						  <label for="photo_title2">Resim İsmi:</label>
						</dt>
						<dd><input type="text" name="baslik"  class="medium" /></dd>
                         <input type="hidden" name="durum" value="ekle">
						
					</dl>
					<button type="submit" class="button">KAYDET</button>
					
		  </form>
			</article> 
<?php } ?>
		
		
		<!--DUZENLEME FORMU-->
<?php 
if ( isset($_GET['islem']) AND $_GET['islem']=='duzenle') { ?>

<?php
$varolansorgu="SELECT * FROM ". $tematable . " WHERE slaytid='". $_GET['id'] . "'";
if ( $slaytlar = $db->get_results($varolansorgu) )
		{
		foreach ( $slaytlar as $slayt )
    		{
?>
	
<article>
				<h1>Slayt Duzenle </h1>
	            <FORM class="uniform" enctype="multipart/form-data" METHOD="POST" ACTION="slaytgaleri.php?islem=duzenlendi">
					<dl>
						<dt>
						  <label for="photo_file">Resim Ekle:</label>
						</dt>
						<dd><input name="kullaniciresmi" type="file"  /></dd>
<?php if ($slayt->resim!='') echo '<img style="float:right;margin-left:5px;" src="'.$site.'/onizleme.php?src=resimler/slaytresimleri/'.$slayt->resim.'&w=80">'; ?>
						<dt>
						  <label for="photo_title2">Resim İsmi:</label>
						</dt>
						<dd><input type="text" name="baslik" value="<?php echo $slayt->baslik; ?>"  class="medium" /></dd>
						<input type="hidden" name="id" value="<?php echo $slayt->slaytid; ?>">
                       <input type="hidden" name="islem" value="duzenle">
						
					</dl>
					<button type="submit" class="button">KAYDET</button>
					
		  </form>
			</article>
<?php }}} ?>
		
		
		<article>
			         
				<h1><a href="slaytgaleri.php?islem=yeni">Yeni Slayt Ekle</a></h1>
		</article>
		
		
			<article>
			         
				<h1>Slayt Galeri </h1>
				<ul class="photos sortable">
				     <?php
$varolansorgu="SELECT * FROM ". $tematable . " ORDER BY slaytid DESC";
if ( $slaytlar = $db->get_results($varolansorgu) )
		{
		foreach ( $slaytlar as $slayt )
    		{
?>
					<li>
						<?php if ($slayt->resim!='') echo '<img src="'.$site.'/onizleme.php?src=resimler/slaytresimleri/'.$slayt->resim.'" width="100" height="100" />'; ?>
						<div class="links">
							<a href="slaytgaleri.php?islem=duzenle&id=<?php echo $slayt->slaytid; ?>">D&uuml;zenle</a>
							<a class="delete" href="slaytgaleri.php?islem=sil&id=<?php echo $slayt->slaytid; ?>">Sil</a>
						</div>
					</li>
					<?php }} ?>
				</ul>
		</article>
			
		</section>
		<?php include("menu.php"); ?>
		<?php include("alt.php"); ?>
slaytgaleri.php dosyasıda bu hocam