sudo /etc/init.d/mysql stop
Tag Archives: Ubuntu
Command to start MySQL – Ubuntu Linux
sudo /etc/init.d/mysql start
Command to install MySQL – Ubuntu Linux
sudo apt-get install mysql-server
Command to stop apache – ubuntu Linux
sudo /etc/init.d/apache2 stop
Command to start apache – ubuntu Linux
sudo /etc/init.d/apache2 start
Command to restart apache – ubuntu Linux
sudo /etc/init.d/apache2 restart
Command to install apache – Ubuntu linux
sudo apt-get install apache2
Command to install lamp – ubuntu Linux
sudo tasksel
Remove duplicate entries from an array – PHP
<?php
$testArray = array('Test1', 'Test2', 'Test1');
print_r( array_unique($testArray));
// Array ( [0] => Test1 [1] => Test2 )
?>
How to disable error reporting in php?
<?php error_reporting(0);// Will not report any error error_reporting(-1);// Shows all errors ?>