XAMPP | WAMPP |
---|---|
Cross-platform software, works with Windows, Mac and Linux. | Only works on Windows. |
It includes Apache, Maria DB, PHP and Perl. | It comes with Apache, MySQL and PHP. |
Clean and simple GUI, suitable for beginners. | Simple GUI but more buttons, which makes it best suited for experienced developers. |
XAMPP is lightweight server. | WAMPP is little bit heavier server. |
It consists of more extensions. | Limited or less extensions. |
<?php
$user = 'root';
$pass =' ';
$db = 'newdb';
$ndb = new mysqli ('localhost' , $user , $pass , $db) or die ('connection failed');
echo 'Successful' //if connection is successful then it will print successful
?>
$ cd/home/[username]/Downloads
$ chmod 755 [package name]
$ ls -l [package name]
interminal.$ sudo ./[package name]
$ sudo /opt/lampp/lamppstart