You can create a tar archive on two ways like below. To create an archive of a directory and its contents: tar -cvf name.tar /path/to/directory To create an archive of certfain files: tar -cvf name.tar /path/to/file1 /path/to/file2 /path/to/file3 ...
[root@achappan mysql]# df -hk /var Filesystem                                          1K-blocks         Used                    Available            Use% ...
1. List down all the installed Mysql RPM's [root@achappan mysql]# rpm -qa | grep MySQL MySQL-server-5.5.*-1.rhel5 MySQL-client-5.5.*-1.rhel5 perl-DBD-MySQL-3.0007-2.el5 [root@achappan mysql]# 2. Remove MySQL-server and MySQL-client from the list [root@achappan mysql]# rpm -e MySQL-server-5.5.*-1.rhel5 [root@achappan mysql]# rpm -e MySQL-client-5.5.*-1.rhel5 3.  Verify the uninstalled rpms are removed from the list or not. [root@achappan...
<?php if(preg_match('/(?i)msie [1-8]/',$_SERVER['HTTP_USER_AGENT'])) {    echo "Browser Not supported";     exit; } ?&g...
In PHP, You can display the image in HTML email template in two ways, 1. Your organization restricted your application directory by authorization and you cant able to access outside. In this case you can embed a images in html template 2. If there is no restriction and free to access anywhere you can display your image by using absolute and relative path directly Please find the sample code for the first option: <?php $mail = new PHPMailer(); $mail->IsSMTP(); $mail->From="m.achappan@gmail.com"; $mail->FromName="My...
To restart, start or stop MySQL server from the command line, type the following at the shell prompt… /etc/init.d/mysqld start /etc/init.d/mysqld stop       /etc/init.d/mysqld restart Some Linux flavours offer the service command too service mysqld start  service mysqld stop service mysqld resta...
1. Check a Specific Table in a Database # mysqlcheck -c <dbname> <tablename> -u root -p 2. Check All Tables in a Database # mysqlcheck -c <dbname> -u root -p 3. Check All Tables and All Databases # mysqlcheck -c -u root -p --all-databases 4. Analyze Tables using Mysqlcheck # mysqlcheck -a <dbname> <tablename> -u root -p 5. Optimize Tables using Mysqlcheck # mysqlcheck -o <dbname> <tablename> -u...
                   <?php                    $date_of_completion = '16-03-2015';                     $skip=1;                ...
[root@achappan~]# find . -name '*.php' | wc ...
Cross-browser refers to the ability of a website, web application, HTML construct or client-side script to function in environments that provide its required features and to bow out or degrade gracefully when features are absent or lacking.   1. Ghostlab     2. BrowserStack   3. Sauce Labs   4. CrossBrowserTesting   5. Browsershots   6. Browserling   7. Browsera   8. Mogotest  ...

Blog Archive

Total Pageviews

Popular Posts