Top 5 100% Free 3d 2d Animation Software in 2021 | Free Open Source Software

1.Create a folder in xampp/htdocs/phpsocket

ex: C:\xampp\htdocs\phpsocket

Install node 

2.Open terminal or cmd and type npm to test 

3.After that change directory to phpsocket

4.Now in cmd type npm install express socketio
(You should be inside phpsocket folder to install express and socketio)

5.Create two files index.php and server.js in folder

var app= require('express')();
var http=require('http').Server(app);
var io=require('')(http);

io.sockets.on('connection', function(client) {

console.log("New client");

client.on('message', function(data){



http.listen(8080, function(){

console.log("Listening at :8080")


echo "test";


<!DOCTYPE html>
<script src=""></script>
<script src="http://localhost:8080/"></script>
var socket= io.connect('http://localhost:8080');




Also you can create package.json file
  "name": "phpsocket",
  "version": "1.0.0",
  "description": "",
  "main": "server.js",
  "dependencies": {
    "express": "^4.14.0",
    "socketio": "^1.0.0"
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node server.js"
  "author": "",
  "license": "ISC"

Then at last run node server.js and open php file in browser.
(In command prompt or cmd or terminal you should be inside the folder
ex: C:\xampp\htdocs\phpsocket

check cmd or terminal for result.

Extra Tips:(Run node server from php)
Create a bat file name it as run_node.bat
put content as
node index.js

Create a another bat file name it as stop_node.bat
put content as
taskkill /F /IM "node.exe"

Create a php file admin.php



 if(isset($_POST['on'])) {

if (!($handle_run = popen ('start /B '.$cmd.' >nul 2>&1', 'r') ))

echo "Error";

echo "Running";

if(isset($_POST['off'])) {

//system('cmd /c C:\xampp\htdocs\FRB_new\test_box\rooms\stop_bat.bat');

if (!($handle_stop = system('cmd /c C:\xampp\htdocs\FRB_new\test_box\rooms\stop_bat.bat') ))

echo "Error";

echo "Stopped";

<form action="bat_test.php" method="POST" >
<input type="submit" value="Start the node" name="on"   />

<input type="submit" value="Kill the node" name="off"  />

Remember, keep all these in same folder in chat.