Monday, June 18, 2012

How to Change the php file upload limit in Ubuntu Linux

The maximal file size upload limit in php scripts which is set to 2Mb as default. In order to change that open  the file /etc/php5/apache2/php.ini with command

sudo nano /etc/php5/apache2/php.ini

Now  search for “upload_max_filesize” with (default 2M) your value. Save the file. Restart Apache webserver.

sudo /etc/init.d/apache2 restart

 

Sunday, June 17, 2012

Install Norton Cammander Like File Manager SunFlower in Ubuntu/Debian Linux

Sunflower is Open Source, twin panel, very simple and  highly customizable File Manager for Linux with plugins support. it is like old Norton commander and MC.

How to install

Open a Terminal and type the following

  • sudo add-apt-repository ppa:atareao/sunflower
  • sudo apt-get update
  • sudo apt-get install sunflower

Friday, June 15, 2012

How to install GCC 4.7 in Ubuntu 12.04

How to Install GCC 4.7 in Ubuntu 12.04

You can try this PPA (https://launchpad.net/~ubuntu-toolchain-r/+archive/test) for installing gcc 4.7.
 Note that it has packages only for 12.04

Open a terminal and run the following commands

$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install gcc-4.7

Thursday, June 14, 2012

How to Find Most Recently Updated File in PHP

How to Find  Most Recently Updated  File  in PHP

$path "./";  // put your directory path here 
foreach (glob($path) as $filename
if (filemtime($filename) >= $recentDate)
 $recentDate filemtime($filename); 
 $recentDate date(" F d, Y",$recentDate); 

echo
"Most Recently Updated File".$recentDate;?>

Monday, June 11, 2012

How to install Gnome 3 in ubuntu 12.04


By using the following Steps You can Install the  latest version of Gnome 3 in Ubuntu 12.04

Open a terminal
 $ sudo add-apt-repository ppa:gnome3-team/gnome3 
 $ sudo apt-get update 
 $ sudo apt-get install gnome-shell
 Now Logoff the system and select Gnome