在Node.js Web服务器中执行PHP脚本 [英] Execute PHP scripts within Node.js web server
本文介绍了在Node.js Web服务器中执行PHP脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
要使Node.js Web服务器功能(如Apache)执行PHP脚本,必须执行哪些步骤?有什么方法可以将PHP集成到Node.js中?
What steps are necessary to have a Node.js web server function like Apache executing PHP scripts? Any way to integrate PHP within Node.js?
注意:我不想直接在Node.js中执行PHP脚本,而是通过Apache实例或类似的东西路由".
Note: I don't want to execute PHP scripts directly within Node.js but "routed" through an Apache instance or something similar.
推荐答案
Node.js仅支持JavaScript.这是一个关于如何使PHP侧面运行Node.js的教程.
Node.js only supports JavaScript. Here is a tutorial on how to have PHP running with Node.js on the side.
http: //blog.mixu.net/2011/01/04/nginx-php-fpm-and-node-js-install-on-centos-5-5/
这篇关于在Node.js Web服务器中执行PHP脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文