Author Archives: Tumeva Bilişim

centos curl update

Update Curl on RHEL 8 / CentOS 8 : rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel8/x86_64/city-fan.org-release-2-1.rhel8.noarch.rpm dnf –enablerepo=city-fan.org install libcurl libcurl-devel Update Curl on RHEL 7 / CentOS 7 : rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel7/x86_64/city-fan.org-release-2-1.rhel7.noarch.rpm yum –enablerepo=city-fan.org install libcurl libcurl-devel Update Curl on RHEL 6 / CentOS 6 : # x86_64 rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-2-1.rhel6.noarch.rpm yum –enablerepo=city-fan.org install libcurl libcurl-devel # i386 […]

Devamı »

php her kelimenin baş harfi büyük türkçe karakter çözümü

function strtoupper_tr($deger) { $deger = str_replace(“ç”,”Ç”,$deger); $deger = str_replace(“ğ”,”Ğ”,$deger); $deger = str_replace(“ı”,”I”,$deger); $deger = str_replace(“i”,”İ”,$deger); $deger = str_replace(“ö”,”Ö”,$deger); $deger = str_replace(“ü”,”Ü”,$deger); $deger = str_replace(“ş”,”Ş”,$deger); $deger = strtoupper($deger); $deger = trim($deger); return $deger; } function strtolower_tr($deger) { $deger = str_replace(“Ç”,”ç”,$deger); $deger = str_replace(“Ğ”,”ğ”,$deger); $deger = str_replace(“I”,”ı”,$deger); $deger = str_replace(“İ”,”i”,$deger); $deger = str_replace(“Ö”,”ö”,$deger); $deger = str_replace(“Ü”,”ü”,$deger); $deger […]

Devamı »

php html decode

Aşağıdaki işlev, adlandırılmış ve sayısal HTML varlıklarının kodunu çözer ve UTF-8 üzerinde çalışır. İconv gerektirir. function decodeHtmlEnt($str) { $ret = html_entity_decode($str, ENT_COMPAT, ‘UTF-8’); $p2 = -1; for(;;) { $p = strpos($ret, ‘&#’, $p2+1); if ($p === FALSE) break; $p2 = strpos($ret, ‘;’, $p); if ($p2 === FALSE) break; if (substr($ret, $p+2, 1) == ‘x’) $char […]

Devamı »

jquery ile domain adını alma

Jquery ile domain adını aşağıdaki şekilde alabilirsiniz console.log(“Output;”); console.log(location.hostname); console.log(document.domain); alert(window.location.hostname) console.log(“document.URL : “+document.URL); console.log(“document.location.href : “+document.location.href); console.log(“document.location.origin : “+document.location.origin); console.log(“document.location.hostname : “+document.location.hostname); console.log(“document.location.host : “+document.location.host); console.log(“document.location.pathname : “+document.location.pathname)  

Devamı »