473,387 Members | 1,578 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,387 software developers and data experts.

C++ gateway?

I've got a PHP site that needs to communicate to a C++ program we're
writing. Can you give me a quick overview of how to set this up?

Thanks,

Matthew

Nov 9 '06 #1
3 1367
On 9 Nov 2006 08:38:50 -0800, "Matthew256" <PR********@gmail.comwrote:
>I've got a PHP site that needs to communicate to a C++ program we're
writing. Can you give me a quick overview of how to set this up?
Depends how you define communicate - generally it's the method of interprocess
communication that matters rather than what language the other process was
written in.

Simple command line parameters? http://php.net/system
Pass data via stdin/stdout? http://php.net/proc_open
Sockets? (UNIX, TCP, etc.) http://php.net/sockets
Loaded as a library/extension? http://php.net/manual/en/zend.creating.php

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Nov 9 '06 #2
Andy Hassall:
>I've got a PHP site that needs to communicate to a C++ program we're
writing. Can you give me a quick overview of how to set this up?
Depends how you define communicate - generally it's the method of
interprocess communication that matters rather than what language
the other process was written in.
Exactly,
and the method you will use should depend of the amount and
velocity of the data, but generally there is only memory
and disk (and possibly even the intra- or internet).

Rgds
--
Nov 9 '06 #3

Rudi Menter wrote:
Andy Hassall:
I've got a PHP site that needs to communicate to a C++ program we're
writing. Can you give me a quick overview of how to set this up?
Depends how you define communicate - generally it's the method of
interprocess communication that matters rather than what language
the other process was written in.

Exactly,
and the method you will use should depend of the amount and
velocity of the data, but generally there is only memory
and disk (and possibly even the intra- or internet).

Rgds
--
It's going to be on the same machine, transfering structures back and
forth.
state
zip
item
qty
item
qty
item
qty

Returns:
method
cost
method
cost
method
cost

Maybe twice per minute

Nov 16 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phillip J. Eby | last post by:
PEP: 333 Title: Python Web Server Gateway Interface v1.0 Version: $Revision: 1.1 $ Last-Modified: $Date: 2004/08/27 17:30:09 $ Author: Phillip J. Eby <pje at telecommunity.com> Discussions-To:...
7
by: Jim Hubbard | last post by:
First of all.....Happy New Year to you! I hope you have a successful and joyous new year. As for the HTTP Gateway examples.... I'm looking for some sample code that may illustrate techniques...
2
by: global | last post by:
Hi all, has anyone experience with XA transaction with twophase commit via gateway to host-db, my question is : where do I have to configure the parameters syncpoint=2 and connecttype=2 ? on...
1
by: global | last post by:
We have a Linux Server with UDB-EE 8.1.5, which is used as gateway for client connections to zOS-UDB. Our question : How many memory on the gateway does every connect user need ? We intend to...
0
by: Andy | last post by:
Hi, I'm currently developing my B2C application using ASP.NET. I have several questions regarding planning this application: In my application, I'll use my own shopping cart (developed totally...
8
by: google_groups3 | last post by:
Below is a snippet of code I am using. I want to set the IP, subnet and default gateway of my local computer via code. However, when I do it, I get a "not found" (error number 5) error on the...
0
by: bweaver4usenet | last post by:
Hi, all. I need some help getting a client up and running. Client Issue Client is using vc++ 6 and the Soap Tkt. Our web service is built with c# vs.net 2003. Can someone refer me to a sample I...
0
by: karpalmera | last post by:
We are currently migrating from OS/390 to Z/OS and our DB2 from DB2 4 to DB2 UDB8. However, our Oracle Database and Oracle gateway will remain the same..Oracle database is 7.2.3 and Oracle gateway is...
18
by: Grant Edwards | last post by:
Could whoever is responsible for the gateway that is grabbing my postings off of Usenet and e-mailing them out please fix the headers in the mail messages so that I don't get the bounce messages?...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.