Ok, I played with nodejs, expressjs and socket.io to create some applications. But now I come to the stage where I want to work a little.
I noticed several node applications using PHP for twitter auth on my client side. When I try to rename the client.html file to client.php and restart the server, it produces a blank page with this
Cannot GET /
How will php files be served or will I do twitter auto using js?
This is my NodeJS server.js
var http = require('http'), express = require('express'); var app = module.exports = express.createServer(); // Configuration app.configure(function(){ app.use(express.static(__dirname + '/public')); }); app.listen(1234); console.log("server started on port :1234");
source share