25 Dec, 2024

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 […]

Share your Love
4 mins read

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”

Share your Love
1 min read

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

Share your Love
1 min read

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(); […]

Share your Love
1 min read