We're a place where coders share, stay up-to-date and grow their careers.
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!
Which is simpler than that of NodeJS ;-)
const http = require('http');
const requestListener = ...
const server = http.createServer(requestListener); server.listen(8080);
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!
Which is simpler than that of NodeJS ;-)
const http = require('http');
const requestListener = ...
const server = http.createServer(requestListener);
server.listen(8080);