node 交互 PHP
var http = require('http'),fs=require('fs'),stream=require('stream'),process=require('child_process');
var server=http.createServer(function (req,res) {
var read= process.exec('php hi.php');
read.stdout.pipe(res);
});
server.listen(8888);
推荐文章: