Live data from Hacker News

CGI Using Node.js

cgi-node.org

21–30 of 88 posts

Re: CGI Using Node.js

#21

I don't see why "replace PHP" is needed in the title other than linkbait. This is just a CGI dealy for Node. Even the article says "It can run along side PHP."

Because a large section of the php ecosystem is cgi and inline HTML. That was part of the original appeal and the reason it endures on budget hosts.

What's considered a budget host in 2015 when I can get a digital ocean server to do with as I please for 60$ / year

Re: CGI Using Node.js

#22
This doesn't seem to replace PHP whatsoever.

I thought PHP didn't run as CGI, shelling to a separate program with every request. It runs, in nearly all installations, as a plugin, saving the overhead of spawning a new program.

That's just one of the many reasons it did so well back it the day because it allowed a server to handle far more requests than CGI based stuff.

Re: CGI Using Node.js

#23

This doesn't seem to replace PHP whatsoever. I thought PHP didn't run as CGI, shelling to a separate program with every request. It runs, in nearly all installations, as a plugin, saving the overhead of spawning a new program. That's just one of the many reasons it did so well back it the day because it allowed a server to handle far more requests than CGI based stuff.

PHP can run as CGI, original Apache deployments ended up being that way. Then everyone switched to mod_php/fcgi deployments.

Re: CGI Using Node.js

#26

Earlier quoted context omitted.

Because a large section of the php ecosystem is cgi and inline HTML. That was part of the original appeal and the reason it endures on budget hosts.

What's considered a budget host in 2015 when I can get a digital ocean server to do with as I please for 60$ / year

Cheap shared hosting that costs a few dollars a month and comes with managed support. In this market a LOT of folks are largely non-technical, and want to pay for a managed system. DigitalOcean is great for people like you and me, but if I'm a mom and pop shop with a simple site, I probably just want to FTP some PHP files to a folder and call it a decade, and be sure there's someone to call if something goes wrong.

See: GoDaddy hosting, BlueHost/DreamHost/Hostgator, etc.

Re: CGI Using Node.js

#28
post #25

Is there a real use-case for this? IIS has run server-side JS for years, and nobody's really using it.

Some developers seem to be unwilling to learn anything else other than JavaScript.

Re: CGI Using Node.js

#30

I don't see why "replace PHP" is needed in the title other than linkbait. This is just a CGI dealy for Node. Even the article says "It can run along side PHP."

We replaced that with "CGI" in the title.
Post reply on HN