470,855 Members | 1,277 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

portable IPC - Win and Linux?

I want to write a portable PHP program or two, to do some stuff best done in
PHP ... but to commincate with some project code written in C.

The function ref i have for PHP is: "PHP Functions Essential Reference" (new
riders) ... and it says the pipes and shared memory stuff won't work under
windows and the com stuff won't work under anything but windows. I believe
that ... so I am asking for other approaches that may result in portable
code. Dropping files for communications is a last resort. I use PHP stand
alone without a web server and like it for its easy scripting ... anyone
else using it for just stand alone scripting?

Thanks
Tom
Jul 17 '05 #1
2 3566
Tom Jones wrote:
I want to write a portable PHP program or two, to do some stuff best done
in PHP ... but to commincate with some project code written in C.

The function ref i have for PHP is: "PHP Functions Essential Reference"
(new riders) ... and it says the pipes and shared memory stuff won't work
under windows and the com stuff won't work under anything but windows. I
believe that ... so I am asking for other approaches that may result in
portable code. Dropping files for communications is a last resort. I use
PHP stand alone without a web server and like it for its easy scripting
... anyone else using it for just stand alone scripting?

Thanks
Tom


socket based comms is your friend:
http://www.zend.com/zend/tut/tutorial-staub3.php

Linux Format has an article on it as well this month.
Jul 17 '05 #2
The shmop extension offer access to shared memory and works under both Win32
& Linux.
kaptain kernel ha scritto nel messaggio
<3f***********************@news.easynet.co.uk>.. .
Tom Jones wrote:
I want to write a portable PHP program or two, to do some stuff best done
in PHP ... but to commincate with some project code written in C.

The function ref i have for PHP is: "PHP Functions Essential Reference"
(new riders) ... and it says the pipes and shared memory stuff won't work
under windows and the com stuff won't work under anything but windows. I
believe that ... so I am asking for other approaches that may result in
portable code. Dropping files for communications is a last resort. I use
PHP stand alone without a web server and like it for its easy scripting
... anyone else using it for just stand alone scripting?

Thanks
Tom


socket based comms is your friend:
http://www.zend.com/zend/tut/tutorial-staub3.php

Linux Format has an article on it as well this month.

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

22 posts views Thread by SeeBelow | last post: by
7 posts views Thread by Alex007 | last post: by
9 posts views Thread by PengYu.UT | last post: by
6 posts views Thread by Abubakar | last post: by
5 posts views Thread by Richard Giuly | last post: by
11 posts views Thread by =?iso-8859-1?b?VG9t4XMg0yBoyWlsaWRoZQ==?= | last post: by
37 posts views Thread by Ioannis Vranos | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.