Re: connecting with C-code

From: Date: Sun, 08 Feb 2004 15:59:56 +0000
Subject: Re: connecting with C-code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177141@lists.php.net to get a copy of this message
E.H.Terwiel wrote:
I have a tried-and-tested (15 years of it) piece of C code that I could port from Windows to Linux, and I thought I put a PHP front on it. Is there a way to interface the C-code with PHP 4.3.4 ? If so, could you point me to docs ? frgr Erik
Hello, there are two ways - you can execute a compiled exectable and talk to the executable with command line arguments and/or using popen() function. Another way is to wrap the code in a php extension.

« previous php.general (#177141) next »