New input types in HTML5

HTML5 gives us different input type Which makes very easy to implement HTML code. The input types are given below. Type Value tel The input is of type telephone number search The input field is a search field url a URL email One or more email addresses datetime A date and/or time date A date […]

New tags in HTML5

Now a days HTML so easy with HTML5, which is the fifth version HTML (created in 1990 and standardized as HTML 4 in 1997). HTML5 came with a no of features, I tried to figure out here some of them: 1. Offline: Means browser support . HTML5 support Mozilla, Chrome, Opera, Opera MINI, Opera Mobile, […]

Email sending in PHP

This below code is used for Email sending in PHP. In this code we are sending a simple email with HTML content. This below code is used for Email sending. In this code we are sending a simple email with HTML content. $to = “”; $header .= “MIME-Version: 1.0\r\n”; $header .= “Content-Type: text/html; charset=\”utf-8\”\r\n”; $header […]

Hide wordpress Admin Bar

Admin Bar hiding is very simple. Easily we can hide this using a Hook add_filter( ‘show_admin_bar’, ‘__return_false’ ). function disable_admin_bar() { add_filter( ‘show_admin_bar’, ‘__return_false’ ); } if ( ! is_admin()){ $uid=(int)get_current_user_id(); if($uid >1) add_action( ‘init’, ‘disable_admin_bar’, 1 ); } These above code paste into function.php , There is a condition for admin user, if user […]

Mysql Day wise Backup

I am using Windows 7 System. My Mysql is installed into D: . It is done simple using a Batch file. Batch file will call automatically using scheduler etc. In my batch file d:\DB_Backup is the Backup Directory. We are creating current dated folder Into DB_Backup folder and create .sql file into current dated folder. […]

Mysql replication

Setting up MySQL replication without the downtime Mysql replication is a way where we can manage database simultaneous backup. First, you’ll need to configure the master’s /etc/mysql/my.cnf by adding these lines in the [mysqld] section: server-id=1 binlog-format = mixed log-bin=mysql-bin datadir=/var/lib/mysql innodb_flush_log_at_trx_commit=1 sync_binlog=1 Restart the master mysql server and create a replication user that your slave server […]