- 05
- 04
- 2016
Belli boyutun üzerindeki resimleri klasöre toplamak
Kategorisi : Linuxfind /var/www/siteadiornek.com/web/wp-content/uploads/ -type f -size +30k -exec cp {} /var/www/siteadiornek.com/web/resimler/ \;
find /var/www/siteadiornek.com/web/wp-content/uploads/ -type f -size +30k -exec cp {} /var/www/siteadiornek.com/web/resimler/ \;
apt-get install postfix libsasl2-2 sasl2-bin libsasl2-modules procmail
dpkg-reconfigure postfix
bunu internet olarak seçmemiz gerekiyor.
/etc/init.d/postfix reload
php -r “mail(‘test@test.com’,’test’,’test’);”
find /var/www/clients/ -type f -regex “.*\.gz$” -delete
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE sales_flat_quote;
TRUNCATE sales_flat_quote_address;
TRUNCATE sales_flat_quote_shipping_rate;
TRUNCATE dataflow_batch_export;
TRUNCATE dataflow_batch_import;
TRUNCATE log_customer;
TRUNCATE log_quote;
TRUNCATE log_summary;
TRUNCATE log_summary_type;
TRUNCATE log_url;
TRUNCATE log_url_info;
TRUNCATE log_visitor;
TRUNCATE log_visitor_info;
TRUNCATE log_visitor_online;
TRUNCATE report_viewed_product_index;
TRUNCATE report_compared_product_index;
TRUNCATE report_event;
TRUNCATE index_event;
SET FOREIGN_KEY_CHECKS=1;
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'
" );
}
mysql -uadmin -p`cat /etc/psa/.psa.shadow`
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
yum install php54* –skip-broken
$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”;}
function tags($str){
$regex = “/#+([a-zA-Z0-9
Php, ajax, jquery, mootools web programlama. Linux, apache, lamp sunucu yönetimi. Cpanel, plesk, lxadmin panel kurulumlari.
16 / 04 / 2025, 19:20:02
Web yazilim, grafik
barbetto.com