Created
August 25, 2016 12:46
this is not the finale server.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var fs = require('fs'); | |
var ent = require('ent') | |
var mysql = require('mysql'); | |
var server = http.createServer(function(req, res) { | |
fs.readFile('./index.php', 'utf-8', function(error, content) { | |
res.writeHead(200, {"Content-Type": "text/html"}); | |
res.end(content); | |
}); | |
}); | |
io = require('socket.io').listen(server) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment