2013
2 Quick and Efficient Ways to Import MySQL Database
A common task in database management is exporting and import MySQL database. You can use this procedure to transfer data between servers, backup data, or restore data to a previous state. These tasks can be completed in a number of ways, including with command-line tools and graphical user interfaces. The procedures for exporting and importing […]
How to resolve sudo issue due to its folder permission
In Ubuntu you can first strike Ctrl+Alt+T which opens the terminal. After that you can copy-paste the command below to Ctrl+C and paste in terminal with Ctrl+Shift+V Command: pkexec chmod 0440 /etc/sudoers
php sqlite pdo driver is needed but not installed ubuntu
It’s easy when stuck fpr PDO Driver, Open terminal in Ubuntu and Type command in terminal sudo apt-get install php5-sqlite After you have to restart apache server sudo service apache2 restart
How to installed curl Ubuntu?
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl After installing libcurl you should restart the web server with one of the following commands, sudo /etc/init.d/apache2 restart OR sudo service apache2 restart
How To Extract .RAR Files in Ubuntu
you just need to install small package called ” unrar “ 1 : goto your Terminal then typesudo apt-get install unrar 2 : It will ask you for password, type your user password and press ENTER.
How to Start gnome shell at ubuntu 12.04
Search the Ubuntu Software Center for “CompizConfig” or sudo apt-get install compizconfig-settings-manager Launch CompizConfig Settings Manager by pressing Alt+F2 and running ccsm. (This may also be run from a Terminal.) Click “Window Management” Enable either “Application Switcher” or “Static Application Switcher”
Ungroup Windows in Ubuntu using “Alt+Tab”
Are you an Ubuntu user looking to enhance your window management skills? Ubuntu is a powerful and user-friendly Linux distribution, but sometimes its default window grouping behavior can be a bit limiting. In this article, we’ll explore how to ungroup windows in Ubuntu using the “Alt+Tab” shortcut, allowing you to have more control over your […]
JavaScript parseInt() for type casting
The parseInt() function parses a string and returns an integer. Syntax parseInt(string, radix) Parameter Description string Required. The string to be parsed radix Optional. A number (from 2 to 36) that represents the numeral system to be used
PHP type cast float to int
Description int intval ( mixed $var [, int $base = 10 ] ) Parameters Description $var : The value which converted to an integer $base : Conversion base Examples <?phpecho intval(42); // 42echo intval(4.2); // 4echo intval(’42’); // 42
PHP file Download Script
This article represent you how to download any files from php web server to local machine. This application works mainly on the header of the PHP. Demo: <?php $file = ‘monkey.gif’; if (file_exists($file)) { header(‘Content-Description: File Transfer’); header(‘Content-Type: application/octet-stream’); header(‘Content-Disposition: attachment; filename=’.basename($file)); header(‘Content-Transfer-Encoding: binary’); header(‘Expires: 0’); header(‘Cache-Control: must-revalidate’); header(‘Pragma: public’); header(‘Content-Length: ‘ . filesize($file)); ob_clean(); […]