473,511 Members | 16,730 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3668
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6738
by: Rolf Hemmerling | last post by:
Hello ! Beginner's question: Howto access .RC/.RES Ressource files with portable C++ code ( BCC,MSVC,GNU-C++, OpenWatcom) ? I just wanna access "local language strings", so that I may...
6
5380
by: Shaun Heveron | last post by:
Hi, I'm working on a portable ANSI C++ application designed to compile and execute under Windows and LINUX/UNIX. Is there a portable way of obtaining the current working directory? Sorry, if...
22
2230
by: SeeBelow | last post by:
Is there any way, in C, of interacting with a running program, but still using code that is portable, at least between linux and Windows? By "interacting" it could be something as simple as...
7
14826
by: Alex007 | last post by:
Hi, I've been working on this C assignement for a CS course.... the assignement is going pretty well and all my code works well on both Windows and Linux. The only thing that doesn't work is...
9
4297
by: PengYu.UT | last post by:
Hi, I write the content of a in file "data" (in Sun Machine). Then I read "data" in both SunOS and linux. But the result is different. Do you know how to make it binary data portable. Best...
6
1352
by: Abubakar | last post by:
Hi, we are finding out ways in which we could develop libraries that could be written in c++ in a way that we can use them in windows, linux, and mac os. We want to write portable code, so that it...
5
7606
by: Richard Giuly | last post by:
Hello, I would like to write "portable" C++ code that could theoretically run on linux, windows, and other platforms, and I'd like to use VS as the editor/compiler/linker. The simplest thing...
11
4109
by: =?iso-8859-1?b?VG9t4XMg0yBoyWlsaWRoZQ==?= | last post by:
I'm looking for a C++ library for wireless networking that will work on such platforms as Windows, Linux, Solaris, Mac OS. Has anyone here got experience with this? Can you recommend a library...
37
4186
by: Ioannis Vranos | last post by:
I think this is on topic here, because it is about C++ and available portable C++ GUI frameworks. I am looking for a decent portable C++ (meaning C++ API, not C) GUI framework that works both...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.