Node.js on localhost

I am very new to node.js. I am developing a multiplayer card game. So, someone suggest me to use node.js with apache and php.

how?

Doing a bit research will solve your problem. It seems you have lack of information about sockets read and then go ahead.

Here is a simple chat server written in node.js. It should be a great starting point for multi-user communication in a web environment.

https://github.com/evert/nodejs-chat

Hope it helps!