473,372 Members | 1,067 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

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 3665
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
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
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
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
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
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
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
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.