473,670 Members | 2,677 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 3684
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************ ***********@new s.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
6749
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 replace the ..RC file to compile a version of my software for a different language.
6
5390
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 I'm being stupid... Thanks,
22
2252
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 detecting a key board hit so that it could invoke scanf(). So a portable key board data available routine would satisfy my minimum requirements. But more generally I want to know if one can write portable C code that allows a user to change the...
7
14851
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 a stupid function that only has to wait for a keypress from the user (it's a CLI program). Here's what I have :
9
4304
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 wishes, Peng
6
1367
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 could be build on mac os, linux, and windows. The code would involve lots of multi-threading and network/socket programming. Since I have read that vc++ 2k5 supports a lot of standard c++ stuff, can it help me to acheive what I want or I will...
5
7619
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 that seems to complie in VS is this: //VS example #include "stdafx.h"
11
4150
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 please? (BTW I've been told to stay away from the Microsoft library because it's very restrictive on what you can do as regards assigning MAC addresses and enabling monitor mode; is this true?) -- Tomás Ó hÉilidhe
37
4218
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 on Linux and Windows, so as to study and learn it. That is, there should be at least one good decent book about it. One option is QT. QT licensing however, is to pay for the QT framework,
0
8471
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8386
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8592
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7421
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6216
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5686
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4393
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2802
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1795
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.