On Tuesday 23 October 2007 16:55:40 Paolo Chiarabaglio wrote:
> Well,
> What I'm looking for is something like a shared memory space, (like a
> double port RAM for electronic engineers!) where the two programs place
> their data in fixed locations and then they read it. Every single
> locations has the same meaning for both applications.
If your PHP _and_ C-applications will always run on the same machine shared
memory is also an option not mentioned yet.
> I don't know it this thing exists or if it is easy to implement, otherwise
> I'll take a better look at pipes.
I would rather consider to go for an implementation with sockets because :
1) Every programming language supports sockets. If one day you need to change
your PHP-part to Flash (Actionscript), Java, Ruby , you name it there will
always be a way to talk to your C-applications through sockets.
2) If you have to split your application with the C-Part running on the Fox
and the PHP-Part running somewhere else on a remote machine, this is not a
big deal with sockets. With pipes you will find yourself rewriting a lot of
your code (and implementing sockets for that in the end).
3) There is a wealth of information about socket-programming in every
language. Every decent book about Linux System Programming has chapters on
network-programming with sockets and pipes too. I never used PHP but it knows
how to handle sockets. Don't know about support of pipes with PHP.
Eberhard
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/foxboard/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/foxboard/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/