This part of the PHP documentation says that I should be able to make a small, fake server to serve up some local .php
files in a folder using
php -S localhost:8000
. But when I try that I get the following error:
Usage: php [options] [-f] <file> [--] [args...]
php [options] -r <code> [--] [args...]
php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
php [options] -- [args...]
php [options] -a
What am I doing wrong?