golb

PHP

How to print and get errors

ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);

//code here

Reference : stackOverflow

Start a simple PHP local server

# only localhost !
php -S localhost:8080
# for external access
php -S 0.0.0.0:8080
# or
php -S 0:8080

Caption :

-S <addr>:<port> : Run with built-in web server

phpMyAdmin - simple usage

cd /usr/share/phpmyadmin/
# or clone the repo
# then start a php web server
php -S localhost:8080