title: loading the php file on node
body: <p>Hi I'm trying to develop a chat system using socket.io, express.io and node.js everything is going smoothly, and I have been following the documentation from them.</p>
  
  <p>The problem is as soon as I'm trying to integrate the design to the skeleton app that I have developed, it wont load correctly. It only gives me a popup notifying me to either download or open the PHP file.</p>
  
  <p>here is my index.js </p>
  
  <pre><code>var app = require('express')();
  var http = require('http').Server(app);
  var io = require('socket.io')(http);
  app.get('/', function(req, res){
    res.sendfile('message.php');
  });
  
  io.on('connection', function(socket){
    socket.on('chat message', function(msg){
      console.log('message: ' + msg);
    });
  });
  
  io.on('connection', function(socket){
    socket.on('chat message', function(msg){
      io.emit('chat message', msg);
    });
  });
  http.listen(3000, function(){
    console.log('listening on *:3000');
  });
  </code></pre>
  
  <p>Am I doing something wrong here?</p>