Change database.php according to you.
(if you are using localhost)
* open xampp
* start apache
* start mysql
run the .php file on your browser
[*] with xampp->
*open terminal (as root)
* go to the folder where xampp is saved. ( as usual in /opt/lampp/ folder)
* run the command -$ ./xampp start
run the .php file on your browser
[*] without xampp->
*open terminal (as root)
* run the command 1) -$ service apache2 start
2) -$ service mysql start
run the .php file on your browser