<?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>PHP &#8211; İNTERNET ALEMİ</title>
	<atom:link href="https://www.internetalemi.net/category/programlama/php/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.internetalemi.net</link>
	<description>İnternet, Bilişim, Yazılım Haber ve Günlüğü</description>
	<lastBuildDate>Fri, 11 Nov 2022 07:23:20 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.3</generator>

<image>
	<url>https://www.internetalemi.net/wp-content/uploads/2017/01/cropped-internet-alemi-logo-32x32.png</url>
	<title>PHP &#8211; İNTERNET ALEMİ</title>
	<link>https://www.internetalemi.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Laravelde / CSS vb. ile yazı üzerine gelince mesaj gösterme</title>
		<link>https://www.internetalemi.net/laravelde-css-vb-ile-yazi-uzerine-gelince-mesaj-gosterme/</link>
					<comments>https://www.internetalemi.net/laravelde-css-vb-ile-yazi-uzerine-gelince-mesaj-gosterme/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 11 Nov 2022 07:23:15 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[Programlama]]></category>
		<guid isPermaLink="false">https://www.internetalemi.net/?p=4959</guid>

					<description><![CDATA[<p>Aşağıdaki kod yardımı ile veri tabanındaki not alanında veri var ise &#8220;notu görüntüle&#8221; yazısının üzerine gelindiğinde veri tabanındaki notu kullanıcılara gösterebilirsiniz.</p>
<p><a rel="nofollow" href="https://www.internetalemi.net/laravelde-css-vb-ile-yazi-uzerine-gelince-mesaj-gosterme/">Laravelde / CSS vb. ile yazı üzerine gelince mesaj gösterme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Aşağıdaki kod yardımı ile veri tabanındaki not alanında veri var ise &#8220;notu görüntüle&#8221; yazısının üzerine gelindiğinde veri tabanındaki notu kullanıcılara gösterebilirsiniz.</p>



<pre class="wp-block-code"><code lang="php" class="language-php">&lt;div class="tooltip2">
                  @if ($liste->not>0) notu görüntüle
                  &lt;span class="tooltiptext">{{ $liste->notlar }}&lt;/span>
                  @endif       
&lt;/div></code></pre>
<p><a rel="nofollow" href="https://www.internetalemi.net/laravelde-css-vb-ile-yazi-uzerine-gelince-mesaj-gosterme/">Laravelde / CSS vb. ile yazı üzerine gelince mesaj gösterme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.internetalemi.net/laravelde-css-vb-ile-yazi-uzerine-gelince-mesaj-gosterme/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP İle Dosya Uzantısından Mime Tiplerinin Bulunması</title>
		<link>https://www.internetalemi.net/php-ile-dosya-uzantisindan-mime-tiplerinin-bulunmasi/</link>
					<comments>https://www.internetalemi.net/php-ile-dosya-uzantisindan-mime-tiplerinin-bulunmasi/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 07 Sep 2021 10:38:03 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programlama]]></category>
		<guid isPermaLink="false">https://www.internetalemi.net/?p=4594</guid>

					<description><![CDATA[<p>Bir dosyanın MIME-TYPE’ ını belirlemek için dosya uzantısına bakmak gerekir. Aşağıda dosya uzantısına göre bir dosyanın MIME-TYPE ‘ın bulunması için PHP işlev örnekleri bulacaksınız. Not! Dosya uzantısı kolayca değiştirilebildiği için bu yol ile mime-türünü belirlemek pek garantili bir yol değildir fakat en çok kullanılanıdır. Buradan  diğer mime tiplerine ulaşabilirsiniz. Ikinci Yol – finfo_open kullanarak Dosya yükleme işlemlerinde kullanmak [&#8230;]</p>
<p><a rel="nofollow" href="https://www.internetalemi.net/php-ile-dosya-uzantisindan-mime-tiplerinin-bulunmasi/">PHP İle Dosya Uzantısından Mime Tiplerinin Bulunması</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Bir dosyanın MIME-TYPE’ ını belirlemek için dosya uzantısına bakmak gerekir. Aşağıda dosya uzantısına göre bir dosyanın MIME-TYPE ‘ın bulunması için PHP işlev örnekleri bulacaksınız. Not! Dosya uzantısı kolayca değiştirilebildiği için bu yol ile mime-türünü belirlemek pek garantili bir yol değildir fakat en çok kullanılanıdır.</p>



<p><a href="http://www.iana.org/assignments/media-types/media-types.xhtml" target="_blank" rel="noreferrer noopener">Buradan </a> diğer mime tiplerine ulaşabilirsiniz.</p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">//kullanımı: dosyaMimeTipi('dosyaadi.jpg'); // image/jpg
function dosyaMimeTipi($dosya){
    $mime_tipleri = array(
        "pdf"=>"application/pdf"
        ,"exe"=>"application/octet-stream"
        ,"zip"=>"application/zip"
        ,"docx"=>"application/msword"
        ,"doc"=>"application/msword"
        ,"xls"=>"application/vnd.ms-excel"
        ,"ppt"=>"application/vnd.ms-powerpoint"
        ,"gif"=>"image/gif"
        ,"png"=>"image/png"
        ,"jpeg"=>"image/jpg"
        ,"jpg"=>"image/jpg"
        ,"mp3"=>"audio/mpeg"
        ,"wav"=>"audio/x-wav"
        ,"mpeg"=>"video/mpeg"
        ,"mpg"=>"video/mpeg"
        ,"mpe"=>"video/mpeg"
        ,"mov"=>"video/quicktime"
        ,"avi"=>"video/x-msvideo"
        ,"3gp"=>"video/3gpp"
        ,"css"=>"text/css"
        ,"jsc"=>"application/javascript"
        ,"html"=>"text/html"
    );
    $dosyauzanti = strtolower(end(explode('.',$dosya)));
    return $mime_tipleri[$dosyauzanti];
}
?></code></pre>



<p>Ikinci Yol – <a href="http://php.net/manual/tr/function.finfo-open.php" target="_blank" rel="noreferrer noopener">finfo_open</a> kullanarak</p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">//kullanımı: dosyaMimeTipi('dosyaadi.jpg'); // image/jpg
function dosyaMimeTipi($dosya){
    $finfo = finfo_open(FILEINFO_MIME_TYPE); 
    $finfile = finfo_file($finfo, $dosya);
    finfo_close($finfo);
    if ($finfile){
        return $finfo;
    } else {
        return "application/octet-stream"; // eğer bulunamazsa bu mime tipini kullan
    }
}</code></pre>



<p>Dosya yükleme işlemlerinde kullanmak isterseniz</p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">$mimetipi = dosyaMimeTipi("dosyaadi.jpg");
$dosyaadi = "dosyaadi.jpg";
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public",false);
header("Content-Description: Dosya Transferi");
header("Content-type: ".$mimetipi);
header("Content-Length: " .(string)(filesize($dosyaadi)) );
header('Content-Disposition: attachment; filename="'.$dosyaadi.'"');
header("Content-Transfer-Encoding: binary\n");
readfile($dosyaadi);

Kaynak : 2015 sonrası güncellenmeyen ve kaybolup gitmesini istemediğim blog yazılarının yer aldığı bilgisayar.me sayfası.</code></pre>
<p><a rel="nofollow" href="https://www.internetalemi.net/php-ile-dosya-uzantisindan-mime-tiplerinin-bulunmasi/">PHP İle Dosya Uzantısından Mime Tiplerinin Bulunması</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.internetalemi.net/php-ile-dosya-uzantisindan-mime-tiplerinin-bulunmasi/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Veritabanı Bilgilerini JSON Kullanarak Listeleme</title>
		<link>https://www.internetalemi.net/veritabani-bilgilerini-json-kullanarak-listeleme/</link>
					<comments>https://www.internetalemi.net/veritabani-bilgilerini-json-kullanarak-listeleme/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 07 Sep 2021 10:24:39 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programlama]]></category>
		<guid isPermaLink="false">https://www.internetalemi.net/?p=4590</guid>

					<description><![CDATA[<p>Örneğimiz için musteri adında bir veritabanı oluşturalım. Phpmyadmin üzerinden veya komut ile: Örnek verilerle veritabanımızı güncelleyelim. Yukarıdaki PHP kodunu çalıştırdığımızda json objemizi elde etmiş oluruz.</p>
<p><a rel="nofollow" href="https://www.internetalemi.net/veritabani-bilgilerini-json-kullanarak-listeleme/">Veritabanı Bilgilerini JSON Kullanarak Listeleme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Örneğimiz için musteri adında bir veritabanı oluşturalım. Phpmyadmin üzerinden veya komut ile:</p>



<pre class="wp-block-preformatted"></pre>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">CREATE TABLE IF NOT EXISTS `musteri` (
  `no` int(11) NOT NULL,
  `musteri_isim` varchar(50) DEFAULT NULL,
  `sehir` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;</code></pre>



<p>Örnek verilerle veritabanımızı güncelleyelim.</p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">INSERT INTO `bilgisayar`.`musteri` (`no`, `musteri_isim`, `sehir`) VALUES 
(NULL, 'Hakan Atilgan', 'İstanbul'), 
(NULL, 'Murat Yalçın', 'Çorum'), 
(NULL, 'Süleyman Solak', 'Burdur'), 
(NULL, 'Emine Gürel', 'Sivas'), 
(NULL, 'Mustafa Doğan', 'İzmir');</code></pre>



<p></p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">&lt;?php
include('config.php'); // veritabanı bağlantı bilgileri
 
$query="select musteri_isim, sehir from musteri_tablo order by musteri_isim asc";
$result = $mysqli-&gt;query($query) or die($mysqli-&gt;error.__LINE__);
 
$arr = array();
if($result-&gt;num_rows &gt; 0) {
    while($row = $result-&gt;fetch_assoc()) {
        $arr[] = $row;
    }
}
$json = json_encode($arr);
 
echo $json;
?&gt;</code></pre>



<p>Yukarıdaki PHP kodunu çalıştırdığımızda json objemizi elde etmiş oluruz.</p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">//Türkçe karakterlerin unicode değerleri ile değiştirildiğine dikkat edin.
[{"musteri_isim":"Emine G\u00fcrel","sehir":"Sivas"},{"musteri_isim":"Hakan Atilgan","sehir":"\u0130stanbul"},{"musteri_isim":"Murat Yal\u00e7\u0131n","sehir":"\u00c7orum"},{"musteri_isim":"Mustafa Do\u011fan","sehir":"\u0130zmir"},{"musteri_isim":"S\u00fcleyman Solak","sehir":"Burdur"}] 

Kaynak : 2015 sonrası güncellenmeyen ve kaybolup gitmesini istemediğim blog yazılarının yer aldığı bilgisayar.me sayfası.</code></pre>
<p><a rel="nofollow" href="https://www.internetalemi.net/veritabani-bilgilerini-json-kullanarak-listeleme/">Veritabanı Bilgilerini JSON Kullanarak Listeleme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.internetalemi.net/veritabani-bilgilerini-json-kullanarak-listeleme/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP ile HTML form’ una başka bir domain ‘den gelen post isteğini önlemek</title>
		<link>https://www.internetalemi.net/php-ile-html-form-una-baska-bir-domain-den-gelen-post-istegini-onlemek/</link>
					<comments>https://www.internetalemi.net/php-ile-html-form-una-baska-bir-domain-den-gelen-post-istegini-onlemek/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 07 Sep 2021 07:22:36 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programlama]]></category>
		<guid isPermaLink="false">https://www.internetalemi.net/?p=4547</guid>

					<description><![CDATA[<p>Bir HTML form’ una başka bir domain ‘den gelen post isteğini önlemek için HTTP_REFERRER veya cookie’ ler kullanılsada en iyi yaklaşım hidden(gizli) input etiketi içinde SHA1(), SHA256() veya Bcrypt ile veritabanında saklanmış bir salt değerini session id veya kullanıcı IP adresi ile birlikte kullanmaktır. Note: salt en az 20 karakterden oluşmalıdır.</p>
<p><a rel="nofollow" href="https://www.internetalemi.net/php-ile-html-form-una-baska-bir-domain-den-gelen-post-istegini-onlemek/">PHP ile HTML form’ una başka bir domain ‘den gelen post isteğini önlemek</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Bir HTML form’ una başka bir domain ‘den gelen post isteğini önlemek için HTTP_REFERRER veya cookie’ ler kullanılsada en iyi yaklaşım hidden(gizli) input etiketi içinde SHA1(), SHA256() veya Bcrypt ile veritabanında saklanmış bir salt değerini session id veya kullanıcı IP adresi ile birlikte kullanmaktır.</p>



<p><strong>Note:</strong> salt en az 20 karakterden oluşmalıdır.</p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">&lt;?PHP
if(isset($_POST)){
    //veritabanı bağlantısı
    $salt = $mysqli ->query("SELECT salt FROM tablo LIMIT 1");
    $sessionid= session_id();
    $ipadres = $_SERVER['REMOTE_ADDR'];
    $gizlietiket = SHA1($salt + $ipadres + $sessionid); // Eğer PHP sürümünüz SHA246 veya Bcrypt'i destekliyorsa SHA1 yerine onlarıda kullanabilirsiniz.
 
    if($gizlietiket == $_POST['gizlietiket']){
         echo 'Sitemizden post yapıldı';
    } else {
        echo 'Alan adı farklı. Başka bir siteden post yapıldı';
    }
}
?>
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html xmlns="http://www.w3.org/1999/xhtml">
&lt;head>
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
&lt;title>Bilgisayar.me&lt;/title>
&lt;/head>
&lt;body>
&lt;?PHP
//veritabanı bağlantısı
$salt = $mysqli ->query("SELECT salt FROM tablo LIMIT 1");
$sessionid= session_id();
$ipadres = $_SERVER['REMOTE_ADDR'];
$gizlietiket = SHA1($salt + $ipadres + $sessionid); // Eğer PHP sürümünüz SHA246 veya Bcrypt'i destekliyorsa SHA1 yerine kullanabilirsiniz.
?>
&lt;form id="form1" name="form1" method="post" action="?">
  &lt;input type="hidden" name="gizlietiket" id="gizlietiket" value="&lt;?PHP echo $gizlietiket?>"/>
  İsim &lt;input  type="text" name="isim"/>
  Adres &lt;input  type="text" name="adres"/>&lt;br />
&lt;input name="" type="submit" value="Gönder"/>
&lt;/form>
&lt;/body>
&lt;/html></code></pre>
<p><a rel="nofollow" href="https://www.internetalemi.net/php-ile-html-form-una-baska-bir-domain-den-gelen-post-istegini-onlemek/">PHP ile HTML form’ una başka bir domain ‘den gelen post isteğini önlemek</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.internetalemi.net/php-ile-html-form-una-baska-bir-domain-den-gelen-post-istegini-onlemek/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>JQuery ile açılan liste(select box) değiştiginde yeni sayfaya yönlerdirme</title>
		<link>https://www.internetalemi.net/jquery-ile-acilan-listeselect-box-degistiginde-yeni-sayfaya-yonlerdirme/</link>
					<comments>https://www.internetalemi.net/jquery-ile-acilan-listeselect-box-degistiginde-yeni-sayfaya-yonlerdirme/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 07 Sep 2021 07:21:02 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programlama]]></category>
		<guid isPermaLink="false">https://www.internetalemi.net/?p=4543</guid>

					<description><![CDATA[<p>HTML JQUERY</p>
<p><a rel="nofollow" href="https://www.internetalemi.net/jquery-ile-acilan-listeselect-box-degistiginde-yeni-sayfaya-yonlerdirme/">JQuery ile açılan liste(select box) değiştiginde yeni sayfaya yönlerdirme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></description>
										<content:encoded><![CDATA[
<p>HTML</p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">&lt;div class="pull-right">Elemanlar
  &lt;select name="kullanicikutusu" id="kullanicikutusu" style="width:300px">
    &lt;option value="">&lt;/option>
    &lt;option value="199" selected="selected">Adam Ri&lt;/option>
    &lt;option value="89">Amanda Loweryneken&lt;/option>
    &lt;option value="200">Anna Bowenneken&lt;/option>
    &lt;option value="145">Bethany Olnekenson&lt;/option>
    &lt;option value="158">Brent Rednekenburn&lt;/option>
    &lt;option value="177">Chris Mornekengan&lt;/option>
    &lt;option value="86">Dustin Zimmer&lt;/option>
    &lt;option value="187">Greg Lauxman&lt;/option>
    &lt;option value="1">Hakan Atilgan&lt;/option>
    &lt;option value="198">Jessica Schlossmaner&lt;/option>
    &lt;option value="164">Juan Alemasn&lt;/option>
    &lt;option value="153">Lucas Muel&lt;/option>
    &lt;option value="156">Matt Millerler&lt;/option>
    &lt;option value="191">Shawn Smithler&lt;/option>
    &lt;option value="193">Shelly Littleler&lt;/option>
  &lt;/select>
&lt;/div></code></pre>



<p>JQUERY</p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">&lt;script>
$(document).ready(function() { 
    $(document).on("change","#kullanicikutusu", function(){
        var sel = $(this).val(); //açılan liste seçilen değer
        window.location ='index.php?id='+sel;  //kullanicikutusu ismindeki açılan liste değiştiginde index.php sayfasina yönlerdir
    });
});
&lt;/script></code></pre>
<p><a rel="nofollow" href="https://www.internetalemi.net/jquery-ile-acilan-listeselect-box-degistiginde-yeni-sayfaya-yonlerdirme/">JQuery ile açılan liste(select box) değiştiginde yeni sayfaya yönlerdirme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.internetalemi.net/jquery-ile-acilan-listeselect-box-degistiginde-yeni-sayfaya-yonlerdirme/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Jquery ile DIV etiketini yenileme</title>
		<link>https://www.internetalemi.net/jquery-ile-div-etiketini-yenileme/</link>
					<comments>https://www.internetalemi.net/jquery-ile-div-etiketini-yenileme/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 07 Sep 2021 07:18:27 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programlama]]></category>
		<guid isPermaLink="false">https://www.internetalemi.net/?p=4538</guid>

					<description><![CDATA[<p>Jquery’in AJAX özelliği ile DIV etiketini manuel veya otomatik olarak yenileme örnekleri. JQUERY manuel yenileme JQUERY otomatik yenileme PHP – ajax.php</p>
<p><a rel="nofollow" href="https://www.internetalemi.net/jquery-ile-div-etiketini-yenileme/">Jquery ile DIV etiketini yenileme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Jquery’in AJAX özelliği ile DIV etiketini manuel veya otomatik olarak yenileme örnekleri.</p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">&lt;a href="javascript:;" id="manuel"> &lt;i class="fa fa-refresh">&lt;/i> &lt;/a>
&lt;ul class="list-group" id="manuelyenileme">
    &lt;li class="list-group-item">Acı acıyı keser, su sancıyı &lt;/li>
    &lt;li class="list-group-item">Aba altında er yatar &lt;/li>
    &lt;li class="list-group-item">Ağaç Yaş İken Eğilir &lt;/li>
    &lt;li class="list-group-item">Tereciye tere satılmaz &lt;/li>
    &lt;li class="list-group-item">Davul birinin boynunda, tokmak bir başkasının elinde &lt;/li>
&lt;/ul>
 
&lt;ul class="list-group" id="otomatikyenileme">
    &lt;li class="list-group-item">Acı acıyı keser, su sancıyı &lt;/li>
    &lt;li class="list-group-item">Aba altında er yatar &lt;/li>
    &lt;li class="list-group-item">Ağaç Yaş İken Eğilir &lt;/li>
    &lt;li class="list-group-item">Tereciye tere satılmaz &lt;/li>
    &lt;li class="list-group-item">Davul birinin boynunda, tokmak bir başkasının elinde &lt;/li>
&lt;/ul></code></pre>



<p><strong>JQUERY manuel yenileme</strong></p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">&lt;script>
(function($){
    $(document).on("click","#manuel", function(){
        $.ajax({ 
            type: "GET", 
            url: "ajax.php",
            data: "manuel=manuel", 
            success: function(data){
                if (data){ 
                    $('#manuelyenileme').fadeOut('fast',function(){
                        $(this).html(data);
                    }).fadeIn();
                }
            }
        });
    });
})(jQuery);
&lt;/script></code></pre>



<p><strong>JQUERY otomatik yenileme</strong></p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">&lt;script>
(function($){
    yenile(); //
})(jQuery);
 
function yenile(){
    $.ajax({ 
        type: "GET", 
	url: "ajax.php",
	data: "manuel=otomatik", 
	success: function(data){
	    if (data){ 
		$('#otomatikyenileme').fadeOut('fast',function(){
		    $(this).html(data);
		}).fadeIn();
            }
            setTimeout(yenile, '5000'); //5 saniye
        }
    });
}
&lt;/script></code></pre>



<p><strong>PHP – ajax.php</strong></p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">&lt;?PHP
include 'db.php';
if (isset($_GET['manuel']) &amp;&amp; $_GET['manuel'] == 'manuel'){
    $sql = "SELECT * FROM iller ORDER BY RAND() LIMIT 5"; 
    $res = $mysqli->query($sql);
    $yaz ='';
    while($nt=$res->fetch_array()){
        $yaz .= '&lt;li class="list-group-item">'.$nt['sehir'].' &lt;/li>';
    }
    echo $yaz;
}
//
if (isset($_GET['manuel']) &amp;&amp; $_GET['manuel'] == 'otomatik'){
    $sql = "SELECT * FROM iller ORDER BY RAND() LIMIT 5";
    $res = $mysqli->query($sql);
    $yaz ='';
    while($nt=$res->fetch_array()){
        $yaz .= '&lt;li class="list-group-item">'.$nt['sehir'].' &lt;/li>';
    }
echo $yaz;
}
?></code></pre>
<p><a rel="nofollow" href="https://www.internetalemi.net/jquery-ile-div-etiketini-yenileme/">Jquery ile DIV etiketini yenileme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.internetalemi.net/jquery-ile-div-etiketini-yenileme/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP ile dosya uzantılarına göre simge gösterme</title>
		<link>https://www.internetalemi.net/php-ile-dosya-uzantilarina-gore-simge-gosterme/</link>
					<comments>https://www.internetalemi.net/php-ile-dosya-uzantilarina-gore-simge-gosterme/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 07 Sep 2021 07:15:45 +0000</pubDate>
				<category><![CDATA[Programlama]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.internetalemi.net/?p=4533</guid>

					<description><![CDATA[<p>Bazı dosya uzantı imgelerini yüklemek için burayı  tıklayın. dosyaUzantiListele işlevinin Kullanımı PHP “dosyaUzantiListele” işlevi</p>
<p><a rel="nofollow" href="https://www.internetalemi.net/php-ile-dosya-uzantilarina-gore-simge-gosterme/">PHP ile dosya uzantılarına göre simge gösterme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Bazı dosya uzantı imgelerini yüklemek için <a href="https://app.box.com/s/gptjsf74oos7k4u71j4kzipks2pfq1az" target="_blank" rel="noreferrer noopener">burayı </a> tıklayın.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="211" height="306" src="https://www.internetalemi.net/wp-content/uploads/2021/09/dosya-simgeleri.jpg" alt="" class="wp-image-4536" srcset="https://www.internetalemi.net/wp-content/uploads/2021/09/dosya-simgeleri.jpg 211w, https://www.internetalemi.net/wp-content/uploads/2021/09/dosya-simgeleri-207x300.jpg 207w" sizes="(max-width: 211px) 100vw, 211px" /></figure>



<h5 class="wp-block-heading">dosyaUzantiListele işlevinin Kullanımı</h5>



<pre class="wp-block-preformatted"></pre>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">$dosyaadi = "dosya.png";
$dosya_uzanti= pathinfo($dosyaadi, PATHINFO_EXTENSION); // pathinfo ile dosyanın uzantısını bul
$imge = dosyaUzantiListele($uzanti); // 
echo '&lt;img src="img/'.$imge.'"> '.$dosyaadi;</code></pre>



<h5 class="wp-block-heading">PHP “dosyaUzantiListele” işlevi</h5>



<pre class="wp-block-preformatted"></pre>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">&lt;?PHP
function dosyaUzantiListele($uzanti) {
switch ($uzanti) {
case "ai":
    return "ai.png";
    break;
    
case "css":
    return "css.png";
    break;
    
case "csv":
case "xlsx":
case "xls":
    return "excel.png";
    break;
    
case "fla":
case "swf":
    return "fla.png";
    break;
    
case "mp3":
case "wav":
    return "wav.png";
    break;
    
case "gif":
case "png":
    return "png.png";
    break;
case "jpg":
case "JPG":
    return "jpg2.png";
    break;
        
case "bmp":
case "dib":
    return "bmp.png";
    break;
    
case "txt":
case "log":
case "sql":
    return "text.png";
    break;
    
case "js":
    return "jscript.png";
    break;
 
case "pdf":
    return "pdf.png";
    break;
    
case "zip":
case "tgz":
case "gz":
    return "zip.png";
    break;
case "rar":    
return "rar.png";
    break;
case "doc":
case "rtf":
    return "word.png";
    break;
case "docx":    
    return "word_docx.png";
    break;
    
case "asp":
case "jsp":
    return "asp.png";
    break;
    
case "php":
    return "desktop.png";
    break;
    
case "htm":
case "html":
    return "html.png";
    break;
    
case "ppt":
    return "powerpoint.png";
    break;
    
case "exe":
case "com":
    return "exe.png";
    break;
case "bat":    
    return "bat.png";
    break;
    
case "wmv":
    return "wmv.png";
        break;
case "mpg":
case "mpeg":
case "wma":
case "asf":
    return "mpg.png";
    break;
    
case "midi":
case "mid":
    return "mpg.png";
    break;
    
case "mov":
    return "mov.png";
    break;
    
case "psd":
    return "psd.png";
    break;
    
case "ram":
case "rm":
    return "real.png";
    break;
    
case "xml":
    return "xml.png";
    break;
    
default:
    return "default.png";
    break;
        }    
}
?></code></pre>
<p><a rel="nofollow" href="https://www.internetalemi.net/php-ile-dosya-uzantilarina-gore-simge-gosterme/">PHP ile dosya uzantılarına göre simge gösterme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.internetalemi.net/php-ile-dosya-uzantilarina-gore-simge-gosterme/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP ile herhangi bir sitenin Favicon’ ını Google repositorisinden çekme</title>
		<link>https://www.internetalemi.net/php-ile-herhangi-bir-sitenin-favicon-ini-google-repositorisinden-cekme/</link>
					<comments>https://www.internetalemi.net/php-ile-herhangi-bir-sitenin-favicon-ini-google-repositorisinden-cekme/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 07 Sep 2021 06:24:29 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programlama]]></category>
		<guid isPermaLink="false">https://www.internetalemi.net/?p=4495</guid>

					<description><![CDATA[<p>Bu basit PHP işlevi ile istediğiniz bir sitenin favicon imgesini uygulamalarınızda gösterebilirsiniz.</p>
<p><a rel="nofollow" href="https://www.internetalemi.net/php-ile-herhangi-bir-sitenin-favicon-ini-google-repositorisinden-cekme/">PHP ile herhangi bir sitenin Favicon’ ını Google repositorisinden çekme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Bu basit PHP işlevi ile istediğiniz bir sitenin favicon imgesini uygulamalarınızda gösterebilirsiniz.</p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">&lt;?PHP echo favicon('http://www.msn.com',16,16)?>

//KULLANIMI ->
   function favicon($url, $width='16', $height='16'){
        $link= "http://www.google.com/s2/favicons?domain=".$url;
        $favicon= '&lt;img src="'.$link.'" width="'.$width.'" height="'.$height.' title="favicon""> ';
        return $favicon;
    }</code></pre>



<p></p>
<p><a rel="nofollow" href="https://www.internetalemi.net/php-ile-herhangi-bir-sitenin-favicon-ini-google-repositorisinden-cekme/">PHP ile herhangi bir sitenin Favicon’ ını Google repositorisinden çekme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.internetalemi.net/php-ile-herhangi-bir-sitenin-favicon-ini-google-repositorisinden-cekme/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP ile Ay ve Günleri Türkçeleştirme</title>
		<link>https://www.internetalemi.net/php-ile-ay-ve-gunleri-turkcelestirme/</link>
					<comments>https://www.internetalemi.net/php-ile-ay-ve-gunleri-turkcelestirme/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 07 Sep 2021 05:55:08 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programlama]]></category>
		<guid isPermaLink="false">https://www.internetalemi.net/?p=4462</guid>

					<description><![CDATA[<p>Bu işlem tarihTurkcelestir fonksiyonu ile yapılacaktır. tarihTurkcelestir ( ‘4’, ‘ay’, ‘h’ ); // NisantarihTurkcelestir ( date(“n”), ‘ay’, ‘h’ ); // bu aytarihTurkcelestir ( ‘4’, ‘gun’, ‘h’ ); // PerşembetarihTurkcelestir ( date(“w”), ‘gun’, ‘h’ ); // bugüntarihTurkcelestir ( ‘4’, ‘ay’, ‘e’ ); // NistarihTurkcelestir ( ‘4’, ‘gun’, ‘e’ ); // Per Kaynak : 2015 sonrası güncellenmeyen [&#8230;]</p>
<p><a rel="nofollow" href="https://www.internetalemi.net/php-ile-ay-ve-gunleri-turkcelestirme/">PHP ile Ay ve Günleri Türkçeleştirme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Bu işlem tarihTurkcelestir fonksiyonu ile yapılacaktır.</p>



<p>tarihTurkcelestir ( ‘4’, ‘ay’, ‘h’ ); // Nisan<br>tarihTurkcelestir ( date(“n”), ‘ay’, ‘h’ ); // bu ay<br>tarihTurkcelestir ( ‘4’, ‘gun’, ‘h’ ); // Perşembe<br>tarihTurkcelestir ( date(“w”), ‘gun’, ‘h’ ); // bugün<br>tarihTurkcelestir ( ‘4’, ‘ay’, ‘e’ ); // Nis<br>tarihTurkcelestir ( ‘4’, ‘gun’, ‘e’ ); // Per</p>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">// $deger parametresi mutlaka sayısal değer olmalıdır.
function tarihTurkcelestir($deger,$tarih='ay',$kisalt='h'){
    $aylar = array(1=>"Ocak",2=>"Şubat",3=>"Mart",4=>"Nisan",5=>"Mayıs",6=>"Haziran",7=>"Temmuz",8=>"Ağustos",9=>"Eylül",10=>"Ekim",11=>"Kasım",12=>"Aralık");
    $gunler= array(0=>"Pazar",1=>"Pazartesi",2=>"Salı",3=>"Çarşamba",4=>"Perşembe",5=>"Cuma",6=>"Cumartesi");
    // Ay ve Gün İsimlerinin Kısaltmaları
    $kisaaylar = array(1=>"Oca",2=>"Şub",3=>"Mar",4=>"Nis",5=>"May",6=>"Haz",7=>"Tem",8=>"Ağu",9=>"Eyl",10=>"Eki",11=>"Kas",12=>"Ara");
    $kisagunler= array(0=>"Paz",1=>"Pzt",2=>"Sal",3=>"Çar",4=>"Per",5=>"Cum",6=>"Cmt");
    if ($tarih == 'ay'){
        if ($kisalt == 'h'){
            return $aylar[date($deger)];	
        } else {
            return $kisaaylar[date($deger)];	
        }
    } else if ($tarih == 'gun'){
        if ($kisalt == 'h'){
            return $gunler[date($deger)];	
        } else {
            return $kisagunler[date($deger)];	
        }
    } else {
        return ;
    }
}</code></pre>



<p>Kaynak : 2015 sonrası güncellenmeyen ve kaybolup gitmesini istemediğim blog yazılarının yer aldığı bilgisayar.me sayfası.</p>
<p><a rel="nofollow" href="https://www.internetalemi.net/php-ile-ay-ve-gunleri-turkcelestirme/">PHP ile Ay ve Günleri Türkçeleştirme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.internetalemi.net/php-ile-ay-ve-gunleri-turkcelestirme/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP ile Saat Dakika Saniye Dönüşümleri Yazı Olarak Yazabilme</title>
		<link>https://www.internetalemi.net/php-ile-saat-dakika-saniye-donusumleri-yazi-olarak-yazabilme/</link>
					<comments>https://www.internetalemi.net/php-ile-saat-dakika-saniye-donusumleri-yazi-olarak-yazabilme/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 07 Sep 2021 05:51:27 +0000</pubDate>
				<category><![CDATA[Haberler]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programlama]]></category>
		<guid isPermaLink="false">https://www.internetalemi.net/?p=4451</guid>

					<description><![CDATA[<p>Zamanı yazıya çevir   Saati saniyeye çevir Saniyeyi saate çevir Saniyeyi yazıya çevir Kaynak 1 : 2015 sonrası güncellenmeyen ve kaybolup gitmesini istemediğim blog yazılarının yer aldığı bilgisayar.me sayfası.</p>
<p><a rel="nofollow" href="https://www.internetalemi.net/php-ile-saat-dakika-saniye-donusumleri-yazi-olarak-yazabilme/">PHP ile Saat Dakika Saniye Dönüşümleri Yazı Olarak Yazabilme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Zamanı yazıya çevir</h3>
<p> </p>


<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">echo zamaniYaziyaCevir('5:12:30');
// 5 saat 12 dakika 30 saniye 
function zamaniYaziyaCevir($zaman){
    list($h1,$m1,$s1)=split(":",$zaman);
    if ($h1 !=0){
        echo $h1." saat ";
    }
    if ($m1 !=0) {
        echo $m1." dakika ";
    }
    if ($s1 !=0) {
        echo $s1." saniye ";
    }
    if ($h1 ==0 &amp;&amp; $m1 ==0 &amp;&amp; $s1 ==0) {
        echo "Şimdi";	
    }
}
</code></pre>



<h4 class="wp-block-heading">Saati saniyeye çevir</h4>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">echo saatiSaniyeyeCevir('5:12:30');
// 18750
function saatiSaniyeyeCevir($zaman) { 
    $saat = substr($zaman, 0, -6); 
    $dakika = substr($zaman, -5, 2); 
    $saniye = substr($zaman, -2); 
    return $saat * 3600 + $dakika * 60 + $saniye; 
}
</code></pre>



<h4 class="wp-block-heading">Saniyeyi saate çevir</h4>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">echo saniyeyiSaatiCevir('6034');
// 1:00:34
function saniyeyiSaatiCevir($saniye) { 
    $saat = floor($saniye / 3600); 
    $dakika = floor($saniye % 3600 / 60); 
    $saniye = $saniye % 60; 
    return sprintf("%d:%02d:%02d", $saat, $minutes, $saniye); 
}
</code></pre>



<h4 class="wp-block-heading">Saniyeyi yazıya çevir</h4>



<pre class="wp-block-code"><code lang="php" class="language-php line-numbers">echo saniyeyiYaziyaCevir('6034');
// 01saat 40dakika 34saniye 
function saniyeyiYaziyaCevir($saniye)
{
    $saat = '00'; $dakika = '00'; $saniyeler = '00';
    if($saniye >= 3600){ 
        $saat = (int)($saniye/3600);
        $saniye = $saniye % 3600; 
        if( $saat &lt; 10 ) $saat = "0$saat";
    }
    if( $saniye >= 60 ){ 
        $dakika = (int)($saniye/60);
        $saniye = $saniye % 60;
        if( $dakika &lt; 10 ) $dakika = "0$dakika";
    }
    $saniyeler = $saniye;
    if( $saniyeler &lt; 10 ) $saniyeler = "0$SS";
    return "{$saat}saat {$dakika}dakika {$saniyeler}saniye";
}
</code></pre>



<p>Kaynak 1 : 2015 sonrası güncellenmeyen ve kaybolup gitmesini istemediğim blog yazılarının yer aldığı bilgisayar.me sayfası.</p>
<p><a rel="nofollow" href="https://www.internetalemi.net/php-ile-saat-dakika-saniye-donusumleri-yazi-olarak-yazabilme/">PHP ile Saat Dakika Saniye Dönüşümleri Yazı Olarak Yazabilme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.internetalemi.net/php-ile-saat-dakika-saniye-donusumleri-yazi-olarak-yazabilme/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
