express-php
v0.0.1
Published
serving PHP over Express/Node.js
Downloads
16
Readme
express-php
serving PHP over Express & Node.js
Example
var express = require('express');
var php = require('express-php');
var app = express();
app.use(php.cgi('./httpdocs'));
app.use(express.static('./httpdocs'));
app.listen(4000);
Installation
$ npm install express-php
php-cgi should be installed, if not:
$ sudo apt-get install php5-cgi
Compiling coffee2js
$ npm install -g coffee-script
$ coffee -b -c index.coffee