<?php
return array(
'connectionString' => 'mysql:host=localhost;dbname=holyshit',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' => 'utf8',
);
var db = mysql.createPool({
connectionLimit : 100,
host : 'localhost',
user : 'root',
password : '',
database : 'holyshit',
debug : false
});
in app/sendTest.html
app.get("/",function(req, res){
res.redirect('http://localhost/~joel.zhong/104/holyshit/app/index.php/client/');
});
http://localhost/~joel.zhong/104/holyshit/app/index.php/client/
you can replace to your correct url.
like this
http://localhost/holyshit-online/app/index.php/client/
node your_holyshit_folder/app/node/server.js