Created
August 25, 2016 12:46
-
-
Save chihebnabil/afe8dd601f5456535386ef8ac3481c2b to your computer and use it in GitHub Desktop.
this is not the finale server.js
This file contains 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