0

I need exchange data between python daemon (cluster nods send data to this daemon) and php script (apache) which, is accessed by webbrowsers. What do you recommend as technology which could establish some connection between them. Both, python daemon and apache/php is on the same machine.

Thank you.

Mejmo
  • 2,363
  • 9
  • 35
  • 54

2 Answers2

0

What you are wanting to do is called IPC (inter process communication). Since these are common Linux applications I am going to refer you to this SO question which recommends Unix Domain Sockets.

For PHP look here and for Python look here.

Community
  • 1
  • 1
Andrew White
  • 52,720
  • 19
  • 113
  • 137
0

If you want things to be synchronous use a named socket(Amazing feature on Unix systems.)

If you want things to be asynchronous use pickle(there is a php version of it too.)

Afiefh
  • 920
  • 1
  • 7
  • 15