<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>upload arşivleri - Zülfü Mehmet</title>
	<atom:link href="https://www.zulfumehmet.com/tag/upload/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.zulfumehmet.com/tag/upload/</link>
	<description>Kişisel Bir Olay</description>
	<lastBuildDate>Tue, 21 Apr 2020 17:29:11 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://www.zulfumehmet.com/wp-content/uploads/2016/10/favicon.ico</url>
	<title>upload arşivleri - Zülfü Mehmet</title>
	<link>https://www.zulfumehmet.com/tag/upload/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>CKEditor File Maneger Entegrasyon</title>
		<link>https://www.zulfumehmet.com/ckeditor-file-maneger-entegrasyon/</link>
					<comments>https://www.zulfumehmet.com/ckeditor-file-maneger-entegrasyon/#respond</comments>
		
		<dc:creator><![CDATA[Zülfü Mehmet ÖZÇİFÇİ]]></dc:creator>
		<pubDate>Tue, 21 Apr 2020 17:25:49 +0000</pubDate>
				<category><![CDATA[Genel]]></category>
		<category><![CDATA[Web Tasarım]]></category>
		<category><![CDATA[CKEditor]]></category>
		<category><![CDATA[class.upload]]></category>
		<category><![CDATA[filemaneger]]></category>
		<category><![CDATA[resim]]></category>
		<category><![CDATA[upload]]></category>
		<guid isPermaLink="false">https://www.zulfumehmet.com/?p=4223</guid>

					<description><![CDATA[<p>Web tasarım ile uğraşan çoğu arkadaşlarımızın bileceği gibi, post işlemlerinde bir metin post etmek için textarea elemanını kullanıyoruz, texarea ile en çok kullanan editor ise CKEditor. CKEditor de normal kurulum yaptığımız zaman maalesef filemaneger gelememekte. Bunun için ekstradan CKFinder yada benzeri uygulamaları kullanabilirsiniz; ama paylaşımlı hostlarda bazı fonksiyonların kullanımı engellendiği için (örneğin fileinfo) maalesef bu &#8230; <a href="https://www.zulfumehmet.com/ckeditor-file-maneger-entegrasyon/" class="more-link">Continue reading <span class="screen-reader-text">CKEditor File Maneger Entegrasyon</span></a></p>
<p>The post <a href="https://www.zulfumehmet.com/ckeditor-file-maneger-entegrasyon/">CKEditor File Maneger Entegrasyon</a> appeared first on <a href="https://www.zulfumehmet.com">Zülfü Mehmet</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Web tasarım ile uğraşan çoğu arkadaşlarımızın bileceği gibi, post işlemlerinde bir metin post etmek için textarea elemanını kullanıyoruz, texarea ile en çok kullanan editor ise CKEditor. CKEditor de normal kurulum yaptığımız zaman maalesef filemaneger gelememekte. Bunun için ekstradan CKFinder yada benzeri uygulamaları kullanabilirsiniz; ama paylaşımlı hostlarda bazı fonksiyonların kullanımı engellendiği için (örneğin fileinfo) maalesef bu tür uygulamalrı da kullanamıyorsunuz, bende bir projede ihtiyaç duyduğum ve paylaşımlı hostlardaki fonksiyonlara izin vermediği için bende sıfırdan bir filemaneger yazmaya karar verdim, buyrun birlikte nasıl kurulur neler yapmanız gerektiğine dair konuya değinelim.<br />
<!-- Makale_ici --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-1000738755084616" data-ad-slot="2280084802" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<h3>Kullanacağımız Scriptin Özellikleri ve Gerekli Ayarlar</h3>
<p>Kullandığım projenin admin panelinde kullandığım için girişte kullanıcı adı ve şifre istemekte, kullanıcı giriş bilgileri yer almaktadır ve session ile kullanıcı kayıt altında tutulmaktadır,</p>
<p>İndireceğiniz CKEditor.sql dosyasını veritabanınıza import ediyoruz ardından bağlantı.php dosyasını açınız,</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4226" src="https://www.zulfumehmet.com/wp-content/uploads/2020/04/baglanti.png" alt="" width="926" height="666" srcset="https://www.zulfumehmet.com/wp-content/uploads/2020/04/baglanti.png?v=1654869981 926w, https://www.zulfumehmet.com/wp-content/uploads/2020/04/baglanti-300x216.png?v=1654869981 300w, https://www.zulfumehmet.com/wp-content/uploads/2020/04/baglanti-768x552.png?v=1654869981 768w" sizes="(max-width: 926px) 100vw, 926px" /></p>
<pre class="brush: php; title: ; notranslate">
$dizinyolu= &quot;//localhost/site/upload/&quot;; //yüklediğimiz resimlerin urlsini belirliyoruz, eğer hem http hem https protokollerini kullanıyorsa web siteniz http yada https yazmadan direk //siteadi.com/resimlerinbulundugudizin
$uploadyolu = &quot;../../upload/&quot;; //dosyanın nereye upload edileceğini belirliyoruz.
$user = &quot;db kullanıcı adı&quot;;
$pass = &quot;db şifre&quot;;
$dbname = &quot;db adı&quot;;
$host = &quot;dbadresi&quot;;</pre>
<p>Değişkenleri kendinize göre düzenleyiniz.</p>
<p><!-- Makale_ici --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-1000738755084616" data-ad-slot="2280084802" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p>Kullanacağımız scriptte <a href="https://ckeditor.com/ckeditor-4/" target="_blank" rel="noopener noreferrer">CKEditor 4</a> kullandık. İster web sitesinden indirip web sitemize dahil ediyoruz.</p>
<pre class="brush: php; title: ; notranslate"> &lt;script src=&quot;js/ckeditor/ckeditor.js&quot;&gt;&lt;/script&gt;</pre>
<p>Projemize dahil ettiğimiz CKEditör için bir textarea oluşturup filemanegerimizi textareaya tanımlayacağız.</p>
<p><img decoding="async" class="alignnone size-full wp-image-4225" src="https://www.zulfumehmet.com/wp-content/uploads/2020/04/editor.png" alt="" width="777" height="191" srcset="https://www.zulfumehmet.com/wp-content/uploads/2020/04/editor.png?v=1654869982 777w, https://www.zulfumehmet.com/wp-content/uploads/2020/04/editor-300x74.png?v=1654869982 300w, https://www.zulfumehmet.com/wp-content/uploads/2020/04/editor-768x189.png?v=1654869982 768w" sizes="(max-width: 777px) 100vw, 777px" /></p>
<p>kullanacağımız textare elemanına CKEditor tanımladık ve yazdığımız filemangeri filebrowser olarak tanımladık.</p>
<p>Tüm işlemleri yaptıktan sonra sisteme girelim</p>
<p>Kullanıcı adı :admin</p>
<p>Şifre: admin</p>
<p>Şifreyi değiştirecek arkadaşlar önce MD5 ile şifreleyip çıkan MD5şifresini SHA1 dönüştürerek kullanmıştım projede. Siz kendinize göre değiştirebilirsiniz projeyi.</p>
<pre><img decoding="async" class="alignnone size-full wp-image-4229" src="https://www.zulfumehmet.com/wp-content/uploads/2020/04/resimsec.png" alt="" width="743" height="309" srcset="https://www.zulfumehmet.com/wp-content/uploads/2020/04/resimsec.png?v=1654869980 743w, https://www.zulfumehmet.com/wp-content/uploads/2020/04/resimsec-300x125.png?v=1654869980 300w" sizes="(max-width: 743px) 100vw, 743px" /></pre>
<p>&nbsp;</p>
<p>Açılan sayfada CKEditör entegre ettiğimiz textarea elemanından resim sekmesine tıklayın ve açılan menüde Sunucuya Gözat butonunu göreceksiniz, Sunucuya Gözat butonuna tıklayınız ve filemaneger açılacak,</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4231" src="https://www.zulfumehmet.com/wp-content/uploads/2020/04/resimsec2.png" alt="" width="595" height="612" srcset="https://www.zulfumehmet.com/wp-content/uploads/2020/04/resimsec2.png?v=1654869980 595w, https://www.zulfumehmet.com/wp-content/uploads/2020/04/resimsec2-292x300.png?v=1654869980 292w" sizes="auto, (max-width: 595px) 100vw, 595px" /></p>
<p>Klasörlere girip yeni fotoğraf yükleyebilir ve yüklü fotoğrafları silebilirsiniz, kopyala butonuna tıklayarak resmin url adresini alalım,</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4232" src="https://www.zulfumehmet.com/wp-content/uploads/2020/04/yapıstır.png" alt="" width="550" height="423" srcset="https://www.zulfumehmet.com/wp-content/uploads/2020/04/yapıstır.png?v=1654869979 550w, https://www.zulfumehmet.com/wp-content/uploads/2020/04/yapıstır-300x231.png?v=1654869979 300w" sizes="auto, (max-width: 550px) 100vw, 550px" /></p>
<p>Adresini aldığımız url yapıştırıyoruz,</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4233" src="https://www.zulfumehmet.com/wp-content/uploads/2020/04/bak.png" alt="" width="534" height="571" srcset="https://www.zulfumehmet.com/wp-content/uploads/2020/04/bak.png?v=1654869978 534w, https://www.zulfumehmet.com/wp-content/uploads/2020/04/bak-281x300.png?v=1654869978 281w" sizes="auto, (max-width: 534px) 100vw, 534px" /></p>
<p>Tamam butonuna tıklayınız,</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4234" src="https://www.zulfumehmet.com/wp-content/uploads/2020/04/ekle.png" alt="" width="830" height="604" srcset="https://www.zulfumehmet.com/wp-content/uploads/2020/04/ekle.png?v=1654869977 830w, https://www.zulfumehmet.com/wp-content/uploads/2020/04/ekle-300x218.png?v=1654869977 300w, https://www.zulfumehmet.com/wp-content/uploads/2020/04/ekle-768x559.png?v=1654869977 768w" sizes="auto, (max-width: 830px) 100vw, 830px" /></p>
<p>Resim editörümüze eklendi, upload.php dosyasında yüklenen resimlere ebat belirleyebilirsiniz, tasarımı çok iyi olmasada geliştirilmeye uygun ve kullanışlı bir uygulama olduğunu düşünüyorum.</p>
<p>İşinize yaraması umuduyla, takıldığınız yerde yorumlara yazabilirsiniz.</p>
<p>Projeyi indirmek için:</p>
<p>GitHub: <strong><a href="https://github.com/zulfumehmet/filemaneger/" target="_blank" rel="noopener noreferrer">https://github.com/zulfumehmet/filemaneger/</a> </strong></p>
<p><a href="https://yadi.sk/d/vXBxV6ISduSdQQ" target="_blank" rel="noopener noreferrer"><img loading="lazy" decoding="async" class="alignnone wp-image-196 size-full" src="https://www.zulfumehmet.com/wp-content/uploads/2016/10/download.png" alt="" width="154" height="60" /></a></p>
<p>The post <a href="https://www.zulfumehmet.com/ckeditor-file-maneger-entegrasyon/">CKEditor File Maneger Entegrasyon</a> appeared first on <a href="https://www.zulfumehmet.com">Zülfü Mehmet</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.zulfumehmet.com/ckeditor-file-maneger-entegrasyon/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Php İle Toplu Fotoğraf Upload</title>
		<link>https://www.zulfumehmet.com/php-ile-toplu-fotograf-upload/</link>
					<comments>https://www.zulfumehmet.com/php-ile-toplu-fotograf-upload/#comments</comments>
		
		<dc:creator><![CDATA[Zülfü Mehmet ÖZÇİFÇİ]]></dc:creator>
		<pubDate>Mon, 01 Oct 2018 10:49:03 +0000</pubDate>
				<category><![CDATA[Genel]]></category>
		<category><![CDATA[Web Tasarım]]></category>
		<category><![CDATA[class.upload]]></category>
		<category><![CDATA[kayıt]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[pdo]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[resim]]></category>
		<category><![CDATA[silme]]></category>
		<category><![CDATA[toplu]]></category>
		<category><![CDATA[upload]]></category>
		<guid isPermaLink="false">https://www.zulfumehmet.com/?p=3005</guid>

					<description><![CDATA[<p>PHP bilenler için çok kolay ama benim gibi bilmeyenler için çok zor olan bir konuya değineceğim. PHP yardımı ile class.upload kütüphanesini kullanarak toplu olarak fotoğrafları upload edeceğiz. Upload ettiğimiz fotoğrafları istediğimiz ebatta küçültüp artı olarak thumbnial oluşturup, fotoğrafımıza watermark ekleyeceğiz, sunucuya yüklediğimiz fotoğrafları PDO kullanarak veri tabanına kaydedip istediğimiz fotoğrafları da sileceğiz. Resimlerin Kaydını Tuttuğumuz &#8230; <a href="https://www.zulfumehmet.com/php-ile-toplu-fotograf-upload/" class="more-link">Continue reading <span class="screen-reader-text">Php İle Toplu Fotoğraf Upload</span></a></p>
<p>The post <a href="https://www.zulfumehmet.com/php-ile-toplu-fotograf-upload/">Php İle Toplu Fotoğraf Upload</a> appeared first on <a href="https://www.zulfumehmet.com">Zülfü Mehmet</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>PHP bilenler için çok kolay ama benim gibi bilmeyenler için çok zor olan bir konuya değineceğim. PHP yardımı ile class.upload kütüphanesini kullanarak toplu olarak fotoğrafları upload edeceğiz. Upload ettiğimiz fotoğrafları istediğimiz ebatta küçültüp artı olarak thumbnial oluşturup, fotoğrafımıza watermark ekleyeceğiz, sunucuya yüklediğimiz fotoğrafları PDO kullanarak veri tabanına kaydedip istediğimiz fotoğrafları da sileceğiz.<br />
<script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><br />
<ins class="adsbygoogle" style="display: block; text-align: center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-1000738755084616" data-ad-slot="2390615692"></ins><br />
<script><br />
     (adsbygoogle = window.adsbygoogle || []).push({});<br />
</script></p>
<h4>Resimlerin Kaydını Tuttuğumuz Tablomuz</h4>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3008" src="https://www.zulfumehmet.com/wp-content/uploads/2018/10/Tablo_adi.png" alt="" width="489" height="68" srcset="https://www.zulfumehmet.com/wp-content/uploads/2018/10/Tablo_adi.png?v=1654870296 489w, https://www.zulfumehmet.com/wp-content/uploads/2018/10/Tablo_adi-300x42.png?v=1654870296 300w" sizes="auto, (max-width: 489px) 100vw, 489px" /></p>
<p>Yukarda gördüğünüz gibi ID &#8211; ilanID &#8211; resim_adi &#8211; tarih &#8211; kucuk 5 adet sütundan oluşmaktadır.</p>
<h4>Kodlama Kısmı</h4>
<p>İlk önce <a href="https://www.verot.net/home.htm" target="_blank" rel="noopener">class.upload</a> kütüphanesini indirip projemize dahil edeceğiz.</p>
<h4>Functions.php</h4>
<p>Bu dosya ile db bağlantımızı oluşturuyoruz.</p>
<pre class="brush: php; title: ; notranslate">

&lt;?php
set_time_limit(0);
error_reporting(0);
ini_set(&quot;display_errors&quot;,0);
try {
$db = new PDO(&quot;mysql:host=localhost;dbname=dbadi&quot;, &quot;kullaniciadi&quot;, &quot;sifre&quot;,array(PDO::MYSQL_ATTR_INIT_COMMAND =&gt;&quot;SET NAMES utf8&quot;,PDO::MYSQL_ATTR_INIT_COMMAND =&gt; &quot;SET CHARACTER SET utf8&quot;,array( PDO::ATTR_ERRMODE =&gt; PDO::ERRMODE_EXCEPTION )));
} catch ( PDOException $e ){
print $e-&gt;getMessage();
}
$limit = 10;
$sitedomain = &quot;zulfumehmet.tk&quot;;
?&gt;</pre>
<p>Yukarıdaki dosya sayesinde her sayfada db bağlantısı gerçekleştirmeye gerek kalmadan db bağlantımızı oluşturuyoruz.</p>
<h4>index.php?id=xxx</h4>
<p>Bu sayfada fotoğraf yükleme ve görüntüleme işlemlerini gerçekleştireceğiz. Kodlarımız şu şekilde</p>
<pre class="brush: php; title: ; notranslate">

&lt;?

$parametreler = strtolower($_SERVER&#x5B;'QUERY_STRING']); //Adres satırından gelen tüm sorguları aldık.
$yasaklar=&quot;%¿¿'¿¿`¿¿insert¿¿concat¿¿delete¿¿join¿¿update¿¿select¿¿\&quot;¿¿\\¿¿&lt;¿¿&gt;¿¿tablo_adim¿¿kolon_adim&quot;; //Buraya tablo adlarınızı da ekleyiniz. Her ekleme sonrasını ¿¿ ile ayırmalısınız.
$yasakla=explode('¿¿',$yasaklar);
$sayiver=substr_count($yasaklar,'¿¿');
$i=0;
while ($i&lt;=$sayiver) {
if (strstr($parametreler,$yasakla&#x5B;$i])) {
header(&quot;location:http://www.zulfumehmet.com/&quot;); //Sql injection girişimi yakalandığında yönlendiriyoruz.
exit;
}

$i++;
}

if (strlen($parametreler)&gt;=90) {
header(&quot;location:http://www.zulfumehmet.com/&quot;);
exit;
}
// yukardaki komutlar sql injection onlemek maksatli
include 'functions.php'; // db baglantisini yapalim
?&gt;

&lt;?php $gelen_kod = $_GET&#x5B;&quot;id&quot;]; //atadigimiz id numarasini cagiralim index.php?id=xx hangi numara verdigimizi bilelim?&gt;

&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Resimler &lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;assets/css/styles.css&quot; /&gt;
&lt;script src=&quot;assets/js/script.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;assets/js/albumPreviews.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://cdn.tutorialzine.com/misc/adPacks/v1.js&quot;&gt;&lt;/script&gt;
&lt;link href=&quot;https://fonts.googleapis.com/css?family=Roboto:300,400,500&quot; rel=&quot;stylesheet&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery/jquery.js&quot;&gt;&lt;/script&gt;

&lt;style&gt;
body,html{width:100%;height:100%;,margin:0; padding:0}
div.container{min-height:100%; height:auto !important; height:100%;}

/* test */
div.container{background:white;
z-index:2;
}
#alan img {
display: table-cell;
vertical-align: middle;
}
#ana_div {
height: auto;
width: auto;
margin-right: auto;
margin-left: auto;
background-color: #666666;
z-index:1;
}

.div {
float: left;
height: auto;
width: auto;
margin: 10px;

}
input&#x5B;type=button], input&#x5B;type=submit], input&#x5B;type=file] {

background-color: #346fed;

border: none;

color: white;

padding: 18px 36px;

margin: 5px 3px;

cursor: pointer;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;


&lt;script&gt;
function Goster()
{
document.getElementById(&quot;alan&quot;).hidden = false;
}
&lt;/script&gt;


&lt;div hidden class=&quot;container&quot; id=&quot;alan&quot; &gt;
&lt;center&gt;&lt;img src=&quot;loading.gif&quot; alt=&quot;yukleniyor&quot; title=&quot;yukleniyor&quot;/&gt;&lt;/center&gt;
&lt;/div&gt;

&lt;div id=&quot;ana_div&quot;&gt;


&lt;div class=&quot;div&quot; id=&quot;div&quot;&gt;&lt;p&gt;Lütfen resim seçip Yükle butonuna tıklayınız. Resim Yükleme işleminin bitmesini bekleyiniz.&lt;/p&gt;
&lt;form action=&quot;aupload.php&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;
&lt;input type=&quot;hidden&quot; name=&quot;adi&quot; value=&quot;&lt;?php echo $gelen_kod; ?&gt;&quot;&gt;
&lt;input type=&quot;file&quot; name=&quot;image&#x5B;]&quot; accept=&quot;image/png, image/jpeg&quot; multiple /&gt;&lt;hr /&gt;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Yükle&quot; onclick=&quot;Goster()&quot; /&gt;
&lt;/div&gt;
&lt;!--Yukarilar susleme sanati ile alakali --&gt;
&lt;div class=&quot;div&quot; id=&quot;div2&quot;&gt;&lt;?php
$query= $db -&gt; prepare(&quot;SELECT * FROM resimler where ilanID='$gelen_kod'&quot;); // resimler tablaosunda bulunan atadigimiz id ait bilgi varsa resimleri gostersin.
$query-&gt; execute();
$musteriler = $query -&gt; fetchAll(); ?&gt;

&lt;?php
foreach($musteriler as $dizi){
?&gt;

&lt;a href=&quot;sil.php?id=&lt;?=$dizi&#x5B;&quot;Id&quot;]?&gt;&quot; class=&quot;album&quot;&gt;
&lt;img src=&quot;files/&lt;?php echo $gelen_kod ?&gt;/thumbnail/&lt;?=$dizi&#x5B;&quot;kucuk&quot;]?&gt;&quot; alt=&quot;&lt;?=$dizi&#x5B;&quot;kucuk&quot;]?&gt;&quot; /&gt;
&lt;p class=&quot;button&quot;&gt;Sil&lt;/p&gt;&lt;/a&gt;


&lt;?php }
// dongu olusturup resimlerin hepsini siralamasini istedik. Arti olarak silmek icinde resmin idsini kullanacagiz
?&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<h5>Sil.Php</h5>
<p>Bu dosya yardımı ilede db kayıtlı olan ilanları hem sunucudan hem db den sileceğiz. Kodlarımız şu şekilde.</p>
<pre class="brush: php; title: ; notranslate">

&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Resimler &lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;assets/css/styles.css&quot; /&gt;
&lt;script src=&quot;assets/js/script.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;assets/js/albumPreviews.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://cdn.tutorialzine.com/misc/adPacks/v1.js&quot;&gt;&lt;/script&gt;
&lt;link href=&quot;https://fonts.googleapis.com/css?family=Roboto:300,400,500&quot; rel=&quot;stylesheet&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery/jquery.js&quot;&gt;&lt;/script&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;w3.css&quot;&gt;

&lt;/head&gt;
&lt;body&gt;

&lt;?php

$parametreler = strtolower($_SERVER&#x5B;'QUERY_STRING']); //Adres satırından gelen tüm sorguları aldık.
$yasaklar=&quot;%¿¿'¿¿`¿¿insert¿¿concat¿¿delete¿¿join¿¿update¿¿select¿¿\&quot;¿¿\\¿¿&lt;¿¿&gt;¿¿tablo_adim¿¿kolon_adim&quot;; //Buraya tablo adlarınızı da ekleyiniz. Her ekleme sonrasını ¿¿ ile ayırmalısınız.
$yasakla=explode('¿¿',$yasaklar);
$sayiver=substr_count($yasaklar,'¿¿');
$i=0;
while ($i&lt;=$sayiver) {
if (strstr($parametreler,$yasakla&#x5B;$i])) {
header(&quot;location:http://www.zulfumehmet.tk/&quot;); //Sql injection girişimi yakalandığında yönlendiriyoruz.
exit;
}

$i++;
}

if (strlen($parametreler)&gt;=90) {
header(&quot;location:http://www.zulfumehmet.tk/&quot;);
exit;
}
include 'functions.php';

?&gt;

&lt;?php

$id = $_GET&#x5B;'id'];
?&gt;
&lt;?php

// veri cekme
{
$veri = $db-&gt;prepare('SELECT * FROM resimler WHERE id = :sira');
$veri-&gt;bindValue(':sira', $id, PDO::PARAM_INT);
$veri-&gt;execute();
$dizi = $veri-&gt;fetchAll(PDO::FETCH_ASSOC);

$kucuk = $dizi&#x5B;0]&#x5B;'kucuk'];
$resimid = $dizi&#x5B;0]&#x5B;'Id'];
$resim_adi = $dizi&#x5B;0]&#x5B;'resim_adi'];
$ilanid = $dizi&#x5B;0]&#x5B;'ilanId'];
}

?&gt;

&lt;div class=&quot;w3-container&quot;&gt;
&lt;h1&gt;İlan Resmi silme.&lt;/h1&gt;
&lt;a href=&quot;index.php?id=&lt;?php echo $ilanid; ?&gt;&quot;&gt;&lt;p class=&quot;button&quot;&gt;Başka Resim Sil&lt;/p&gt;&lt;/a&gt;
&lt;ul class=&quot;w3-ul w3-card-4&quot;&gt;

&lt;?php

// kaydi silme

$kullanici_rutbe=$ilanid;
if ($kullanici_rutbe==$ilanid) {
echo &quot; &quot;;
{
$sorgu = $db-&gt;query(&quot;DELETE FROM resimler WHERE id = '$resimid'&quot;);

if ($sorgu-&gt;rowCount() &gt; 0) {
echo $sorgu-&gt;rowCount() . '&lt;li class=&quot;w3-bar&quot;&gt;&lt;span class=&quot;w3-bar-item w3-button w3-white w3-xlarge w3-right&quot;&gt;Silindi&lt;/span&gt;&lt;img src=&quot;cop.jpg&quot; class=&quot;w3-bar-item w3-circle w3-hide-small&quot; style=&quot;width:85px&quot;&gt;&lt;div class=&quot;w3-bar-item&quot;&gt;&lt;span class=&quot;w3-large&quot;&gt;';
} else {
echo '&lt;li class=&quot;w3-bar&quot;&gt;&lt;span class=&quot;w3-bar-item w3-button w3-white w3-xlarge w3-right&quot;&gt;Silinmedi !!!&lt;/span&gt;&lt;img src=&quot;no.png&quot; class=&quot;w3-bar-item w3-circle w3-hide-small&quot; style=&quot;width:85px&quot;&gt;&lt;div class=&quot;w3-bar-item&quot;&gt;&lt;span class=&quot;w3-large&quot;&gt;Bir Sorun Oluştu &lt;/span&gt;&lt;br&gt;&lt;span&gt;Herhangi bir kayıt silinmedi&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;';
}

}

// sunucudan silme kismi
unlink(&quot;files/$ilanid/$resim_adi&quot;);
echo 'Resim';

unlink(&quot;files/$ilanid/thumbnail/$kucuk&quot;);
echo ':'.$kucuk.' &lt;/span&gt;&lt;br&gt;&lt;span&gt;Thumbnail: '.$resim_adi.'&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;';

} else {
echo '&lt;li class=&quot;w3-bar&quot;&gt;&lt;span class=&quot;w3-bar-item w3-button w3-white w3-xlarge w3-right&quot;&gt;Silinmedi !!!&lt;/span&gt;&lt;img src=&quot;no.png&quot; class=&quot;w3-bar-item w3-circle w3-hide-small&quot; style=&quot;width:85px&quot;&gt;&lt;div class=&quot;w3-bar-item&quot;&gt;&lt;span class=&quot;w3-large&quot;&gt;Bir Sorun Oluştu &lt;/span&gt;&lt;br&gt;&lt;span&gt;Bu resmi silme yetkiniz yoktur&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;';
}

?&gt;

&lt;/ul&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>İşlemlerimiz bu kadar takıldığınız yerde sormaya çekinmeyiniz. Demo için aşağıdaki butonu kullanınız. Demo ilan olarak index.php?id=166 kullanabilirsiniz.</p>
<p>Örnek çalışmayı indirmek için aşağıdaki butonu kullanınız</p>
<p><a href="https://www.zulfumehmet.com/wp-content/uploads/2018/10/resim.zip"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-196" src="https://www.zulfumehmet.com/wp-content/uploads/2016/10/download.png" alt="" width="154" height="60" /></a></p>
<p>The post <a href="https://www.zulfumehmet.com/php-ile-toplu-fotograf-upload/">Php İle Toplu Fotoğraf Upload</a> appeared first on <a href="https://www.zulfumehmet.com">Zülfü Mehmet</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.zulfumehmet.com/php-ile-toplu-fotograf-upload/feed/</wfw:commentRss>
			<slash:comments>15</slash:comments>
		
		
			</item>
	</channel>
</rss>
