In the previous article, we laid the groundwork for a Node.JS broadcast server. Now that it is working, the next step is to throw some PHP into the mix. We will begin by creating a PHP script that will post to our Node.JS server. Once that step is complete, it is just a few lones of code to complete the script, posting to PHP and returning the result!
It was recently suggested to me to try out Node.Js and websockets to replace some ajax calls I was using in a web app. After scouring the web for a few hours, I realized that I would have to compile forum knowledge and my own experimentation due to the lack of any actual getting started articles on this subject. I decided that I would document all of my efforts and post them here. This is the first article in my tutorial series on setting up Node.Js, Socket.IO and PHP in a simple socket application.