28
07
2015

Tüm featured images kayıtlarını silmek

Kategorisi : Wordpress
functions.php'ye bu kodları ekliyoruz.

add_action ('init', 'remove_featured_images' );

function remove_featured_images () {

global $wpdb;
// The following query will only unset the featured image, it will not delete it.
$wpdb->query( "
    DELETE FROM $wpdb->postmeta
    WHERE meta_key = '_thumbnail_id'
" );
}

27
06
2015

Mysql admin oturumu açmak – Plesk

Kategorisi : Plesk
mysql -uadmin -p`cat /etc/psa/.psa.shadow`

24
06
2015

Opencart www olmayan linkleri www linklere yönlendirme

Kategorisi : Seo

RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]


16
06
2015

Centos kurulamayan paketleri zorla yüklemek

Kategorisi : Centos

yum install php54* –skip-broken


01
06
2015

Wp post_title kontrolü

Kategorisi : Wordpress

$post_if = $wpdb->get_var(“SELECT count(post_title) FROM $wpdb->posts WHERE post_title = ‘some text'”);
if($post_if < 1){
echo “var”;
} else {echo “yok”;}


04
05
2015

Php sosyal medya hashtag

Kategorisi : Php

function tags($str){
$regex = “/#+([a-zA-Z0-9

_-]+)/”;
//$str = preg_replace($regex, ‘<a href=”h.php?tag=$1″>$0</a>’, $str);
$str = preg_replace($regex, ‘<a>$0</a>’, $str);
return($str);
}

17
04
2015

Magento admin – login problemi

Kategorisi : Magento

Secure URL, Unsecure URL,

core_config_data içerisindeki  valueweb/cookie/cookie_domain “path” aynı olmalı.


24
03
2015

Utf8 special characters – Mysql Insert

Kategorisi : Mysql,Php

Karşılaştırma için : utf8mb4_unicode_ci ve mysql sorguları için :

mysqli_query($con, “SET NAMES utf8mb4”);
mysqli_set_charset( $con, ‘utf8mb4’ );


24
03
2015

İçerisinde belli bir text geçen satırı silmek – linux

Kategorisi : Linux

sed -i ‘/abcdef/ d’ index.php


17
03
2015

mysql alanından ilk 3 kelimeyi seçmek

Kategorisi : Mysql

UPDATE `aa` SET dd=  SUBSTRING_INDEX(bb,” “,3) where cc= ”;



photo

Php, ajax, jquery, mootools web programlama. Linux, apache, lamp sunucu yönetimi. Cpanel, plesk, lxadmin panel kurulumlari.

23 / 09 / 2023, 17:18:38
Web yazilim, grafik
barbetto.com

Tunalioglu.org - 2015