5 ms·
Any possible benefits of doing this with node.js rather than just the normal nginx setup? Maybe if you're just running a simple node.js app but need to include
by arnorhs 16y ago
Any possible benefits of doing this with node.js rather than just the normal nginx setup? Maybe if you're just running a simple node.js app but need to include one single-file php script? I guess that would be useful.
Interesting concept. I like projects like this.
It's also refreshing to see an article on HN mentioning PHP without it being something negative.
- lftl 16y agoMaybe this let you edit the PHP output in nodejs after receiving it back from PHP-FPM?
- arnorhs 16y agoGood point. That might be possible.
- KrisJordan 16y agoBeing able to pop into terminal, create a directory and a PHP file, then run node-php to get a test server running in this new setup is an efficient way to try code out. If the built-in PHP web server were standard this would be less useful.