Posted by Andy Hassall on 11/09/06 16:49
On 9 Nov 2006 08:38:50 -0800, "Matthew256" <PRESENT321@gmail.com> wrote:
>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 :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
[Back to original message]
|