Re: [PHP] PHP connection to external application

2008-06-14 Thread hce
On 6/14/08, Per Jessen <[EMAIL PROTECTED]> wrote: > hce wrote: > > > Anyway, thanks for all your responses and suggestions. It was good > > suggestion to use SOAP and Web services, but we have very small > > latency requirement, I have already worried about the delay in the > > lower level of

Re: [PHP] PHP connection to external application

2008-06-14 Thread Per Jessen
hce wrote: > Anyway, thanks for all your responses and suggestions. It was good > suggestion to use SOAP and Web services, but we have very small > latency requirement, I have already worried about the delay in the > lower level of socket, it will be evern more processing delays for > useing SOAP

Re: [PHP] PHP connection to external application

2008-06-14 Thread hce
On 6/13/08, Per Jessen <[EMAIL PROTECTED]> wrote: > hce wrote: > > > I am not certain if the msg_send / msg_receive in PHP can talk to the > > external C program msg_send / msg_receive as PHP and external C > > program are in different processes, different memory spaces. > > > System V message

Re: [PHP] PHP connection to external application

2008-06-13 Thread Iv Ray
hce wrote: Let me first describe the requirement more: The C program is a major business server I would not connect applications on low level. I would think of a "web services" type of interface - http request and xml response (Steven suggested, for example, SOAP - but it does not need to b

Re: [PHP] PHP connection to external application

2008-06-13 Thread Per Jessen
hce wrote: > I am not certain if the msg_send / msg_receive in PHP can talk to the > external C program msg_send / msg_receive as PHP and external C > program are in different processes, different memory spaces. System V message queues are intended for just that; IPC = Inter Process Communicati

Re: [PHP] PHP connection to external application

2008-06-12 Thread hce
On Thu, Jun 12, 2008 at 9:30 PM, Stut <[EMAIL PROTECTED]> wrote: > On 12 Jun 2008, at 12:20, hce wrote: >> >> What is the best way for a PHP web application to connect to an >> external application written by C in Linux OS? >> >> (1) Can PHP directly call external C functions, or similar solution?

Re: [PHP] PHP connection to external application

2008-06-12 Thread Per Jessen
hce wrote: > What is the best way for a PHP web application to connect to an > external application written by C in Linux OS? > > (1) Can PHP directly call external C functions, or similar solution? PHP can call external executables via e.g. exec(). > (2) Can PHP pass messages to message queue

Re: [PHP] PHP connection to external application

2008-06-12 Thread Stut
On 12 Jun 2008, at 12:20, hce wrote: What is the best way for a PHP web application to connect to an external application written by C in Linux OS? (1) Can PHP directly call external C functions, or similar solution? No, but you can wrap the C functions in a PHP extension. (2) Can PHP pass me

Re: [PHP] PHP connection to external application

2008-06-12 Thread Steven Macintyre
On Thu, 2008-06-12 at 21:20 +1000, hce wrote: > Hi, > > What is the best way for a PHP web application to connect to an > external application written by C in Linux OS? > > (1) Can PHP directly call external C functions, or similar solution? > > (2) Can PHP pass messages to message queue which