how to run a shell command serverside in php code example Example: run a server php terminal $ cd ~/public_html $ php -S localhost:8000