2 ms·
I love PHP's buildin web server than other languages for quick use because its command line is quite easy to remember. php -S localhost:8080
by fomine3 6y ago
I love PHP's buildin web server than other languages for quick use because its command line is quite easy to remember.
php -S localhost:8080
- Aachen 6y agoOn Linux, php -S 0:8080 is shorter if you're just testing (as it's meant for) and have a firewall - though it opens it for 0.0.0.0 (anyone who can reach your system). Not sure about other OSes, I think I noticed this doesn't work on Windows once but that could also have been BSD or something.
- aussieguy1234 6y agoWhile not built into node, I like "serve" best in terms of syntax, even if it only supports static sites. serve . Done