php run from folder code example Example: run a server php with a specific folder terminal $ cd ~/public_html $ php -S localhost:8000 -t foo/