Created
October 26, 2013 18:22
-
-
Save Snugug/7172833 to your computer and use it in GitHub Desktop.
OS X 10.9 (Mavericks) comes with PHP 5.4.17 out of the box, allowing you to start a PHP development server in any directory by running `php -S localhost:8888` with `8888` being the port number you'd like to use. This is a little bash/zsh function to reduce that to `server 8888`. Simply add this to `bash_profile` or `zshconfig`. For more on the P…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server() { | |
php -S localhost:"$*"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment