javascript - How to give Node.js server a command from php script? -


sorry bother you, i've been looking answers , couldn't find them anywhere... i'm fresh dude in field of javascript , node.js , here's problem:

i've created application based on tutorial of socket.io - here's link completed project of chat example. working should, need trigger somekind of command while node server running... command should triggered via php script.

the command should trigger emit event - every client in our case see new message sent via php.

i saw couple of suggestions server php/using curl. problem don't know how fetch post data sent php node.js server.

any solution command node php more welcome , again i'm sorry bother :)

you can use bridge exchange data between nodejs , php. need implement php server exposes remote procedures , nodejs client calls remote procedures. can send data nodejs application php using these remote procedures.

here few links started:

http://bergie.iki.fi/blog/dnode-make_php_and_node-js_talk_to_each_other/

https://github.com/bergie/dnode-php


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -