So what is the PHP side doing? Is it just serving static html (or php templated html)? Sounds like the node server is doing the bulk of the work. It would probably be easiest to port the php code to node. Also you can configure node to be a cgi or fcgi server (using a third-party module) and have it call the php script for those kind of requests, but let node be the main webserver for everything else.
As far as hosting, streaming video is pretty expensive. That's a lot of bandwidth. Assuming the cgi module is js only, you should be able to host on any of the nodejs paas platforms (joyent/nodejitsu, etc..) or buy your own amazon/linode/rackspace vps and set it up yourself. I imagine the deciding factor will be the bandwidth and who gives the best value. I can say that voxer used Joyent for their walky-talky app using node and handles a ton of traffic. On Thu, Aug 23, 2012 at 12:38 PM, Ket <kettin...@gmail.com> wrote: > Thank for reply, > > Let me explain myself. > > I've built a website (not on the world wide web yet). It is built in PHP and > it is a live streaming platform. You can think of twitter. So user needs to > log in my website in order to live stream webcam, video etc. to their > audience. > > Here the example of how my user will stream their webcam: > http://francisshanahan.com/index.php/2011/stream-a-webcam-using-javascript-nodejs-android-opera-mobile-web-sockets-and-html5/ > > On my computer, I just install Node.js and NPM package. Then I built a > server-side app. To use it, I just navigate to the app with my command > prompt (Windows) and run the app with easy command like >node app.js and > leave it alone. > > On the WAMP folder, I just connect to the app with this simple line of code: > socket = new WebSocket("ws://localhost:8080", "echo-protocol"); > > That is, and each app will do their job separately. > > My problem now is to figure out how to put them together on the real world > website (maybe same web hosting). > > People on Google try to replace Apache with Node.js, or redirect path or > something else. I don't need to do that. With WebSocket, they can run > together seamlessly. > > And this is the problem I need to solve. Hope I make it clear. > Thanks > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en