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

Sure it does.

    php -S localhost:8080
It's that easy. For both node and PHP (and any other server), you will end up with more plumbing in production anyway. For example, having a load balancer, cache or other ingress in front of the service. These kinds of universal network layer functions (which I'd argue even include authorization and authentication) should not be part of your code anyway, but part of the network infrastructure (k8s and OPA e.g.)


> Sure it does.

> php -S localhost:8080

Ok, are we talking about single files now or command line commands? Make up your mind.




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

Search: