Node.js and PHP
NickName:tbleckert Ask DateTime:2012-08-19T06:36:02

Node.js and PHP

I'm having a hard time figuring this out. I'm building a game and I want the game to be coded with Node.js (partly for learning and partly cause it seems right). But the game will also have a community and other stuff that will be in PHP.

So my question is. How do I talk to Node.js with PHP? Let' say that a user signs in and goes to the actual game (which is real time between to players), how do I give the user information to Node.js?

Or should I simply code everything with Node.js? I just want to be pushed in the right direction, what is the best way?

Copyright Notice:Content Author:「tbleckert」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12022741/node-js-and-php

Answers
tptcat 2012-08-18T22:38:24

I'm not sure what you've tried, but since you question is pretty broad, try starting here: http://bergie.iki.fi/blog/dnode-make_php_and_node-js_talk_to_each_other/",


More about “Node.js and PHP” related questions

Node.js and PHP

I'm having a hard time figuring this out. I'm building a game and I want the game to be coded with Node.js (partly for learning and partly cause it seems right). But the game will also have a commu...

Show Detail

Integrating Node.js with PHP

I have an application developed in PHP. I'm completely new to node.js and would like to know how I can use node.js for status updates. I don't know node.js that well to have the whole appliction bu...

Show Detail

Mix Node.js and PHP?

Could be possible to generate a page with PHP and then run Node.js to apply some edits to it? On Google I've found examples of PHP and Node.js integration but they are always two different files...

Show Detail

Websockets with PHP and Node.js

Is it possible to have PHP scripts send data through to a Node.js server through websockets? I'm planning a side project that would have PHP scripts running in the background working some magic an...

Show Detail

Sending messages from PHP to Node.js

How to send messages from php to node.js? I have a linux server running php and node.js. When a user completes a transaction (via php), I'd like send a message from php to node.js. Node will then

Show Detail

several doubts about node.js and php

In my case i'm making something like this :- http://sketchtoy.com/65641233 Not that website , i'm talking about the diagram. In my case i will have a page where a client can buy access to some ser...

Show Detail

Accessing config vars with PHP and Node.js in Heroku

I'd like to access some config vars in a PHP file on a Heroku web app. The app runs (and starts) with Node.js and utilizes both Node.js and PHP buildpacks from Heroku. What I want to happen I would

Show Detail

Connect PHP with Node.js

I've made 2 websites on heroku. One is my chat application built with node.js and second is my PHP built website. i want to integrate the node.js chat in my site. how to do that?

Show Detail

PHP -> TCP to NODE.JS vs PHP -> HTTP to NODE.JS

I currently use TCP the method described here: Connection between Node.JS and PHP via UNIX Socket - EPIPE write error And I see other people are using HTTP instead here: Sending messages from PHP to

Show Detail

node.js php-like delimiters

Does Node.js has php-like delimiters that mix server-side code (Node.js) and client-side code (HTML) together in a file? PHP delimiters inside HTML <div> <?php echo 'some text here'; ...

Show Detail