Hi!

I don't know the status of the project, or better alternatives, but you
could use:

https://github.com/substack/dnode
with a PHP client
https://github.com/bergie/dnode-php

If you need more flexibility, I think it is easy to communicate PHP with
Node.js using a simple TCP socket connection, sending, maybe, JSON objects
(I usually send JSON objects separated by \n). Ok, the hard part is stress
testing, etc...

Yes, for client side, use Socket.IO

Angel "Java" Lopez
@ajlopez
gh:ajlopez

On Thu, Dec 13, 2012 at 2:09 AM, Kay <[email protected]> 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