Skip to content

Instantly share code, notes, and snippets.

@CrookedNumber
Last active June 8, 2017 13:35
Show Gist options
  • Save CrookedNumber/0dcfb7e5490caecb4c0a458851b8f49f to your computer and use it in GitHub Desktop.
Save CrookedNumber/0dcfb7e5490caecb4c0a458851b8f49f to your computer and use it in GitHub Desktop.
PHP server func
function srv {
if [ $# -eq 0 ]
then
port=8000
else
port="$1"
fi
php -S "localhost:$port"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment