Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Mac comes with PHP, so you can do

    php -S localhost:3000 -t ./


And now you have: php -S localhost:3000 -t ./ on mac python -m http.server on some versions of linux, python -m SimpleHttpServer 8000 on others, and any of the above on windows.

How is that easier than putting file://path/to/foo.html into my browser window, as someone getting started in web development?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: