By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,872 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,872 IT Pros & Developers. It's quick & easy.

portable IPC - Win and Linux?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.