DEV Community

loading...

Discussion on: PHP vs Node.js

Collapse
back2lobby profile image
8ack2Lobby

No, he is not assuming any kind of complex apache configuration for that hello world code. PHP has its own built-in server. Its just a simple command "php -S localhost:8000" and thats it. Simple!

Collapse
tanmaymishu profile image
Tanmay Das

Which is simpler than that of NodeJS ;-)

const http = require('http');

const requestListener = ...

const server = http.createServer(requestListener);
server.listen(8080);