Hi,

If it were me, I would use some sort of central work queue / event system to
push messages to the node processes. Redis pubsub is a good example.

You could then from php push a message to the node server, which would then
update the client with socket.io or something of the like.

Tim.

On Wed, Dec 12, 2012 at 09:09:12PM -0800, Kay wrote:
> Hello there,
> 
> Our site is running on PHP/Apache. How should we set up an additional 
> Node.js server along side, that will allow the PHP portion to co-work 
> seamlessly with the Node.js part?
> 
> For example - a logged-in user opens up 3 browser tabs of our site, then 
> proceed to log out from our site in one of the browser tabs. How to make it 
> so that when "logout.php" is about to finish running, it calls for Node.js 
> to push out a signal to the client-side (either via long-polling or 
> WebSocket), to allow the other 2 remaining tabs' JavaScript know of the 
> logout event as well?
> 
> Since I need to convince my supervisor, it needs to be a robust and secure 
> enough solution. What I currently have in mind is a vague "putting Node.js 
> behind an Nginx reverse proxy on a separate machine other than the PHP one" 
> idea, but then I have no further clue on how to link up PHP with Node.js, 
> and how to persuade our MIS personnel.
> 
> Hope can get some helps or directions, 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to